public static DataMapWrapperSimpleInfo fromDataMapWrapper(DataMapExprWrapper dataMapExprWrapper) { if (dataMapExprWrapper instanceof DataMapExprWrapperImpl) { return new DataMapWrapperSimpleInfo( ((DataMapExprWrapperImpl) dataMapExprWrapper).getDataMapSchema()); } else if (dataMapExprWrapper instanceof AndDataMapExprWrapper) { return new DataMapWrapperSimpleInfo(WrapperType.AND, fromDataMapWrapper(dataMapExprWrapper.getLeftDataMapWrapper()), fromDataMapWrapper(dataMapExprWrapper.getRightDataMapWrapprt())); } else { return new DataMapWrapperSimpleInfo(WrapperType.OR, fromDataMapWrapper(dataMapExprWrapper.getLeftDataMapWrapper()), fromDataMapWrapper(dataMapExprWrapper.getRightDataMapWrapprt())); } }