private static ExpressionPart getExpressionPart ( String expressionPart , ModelField currentFact ) { if ( currentFact == null ) { return new ExpressionText ( expressionPart ) ; } else { return new ExpressionVariable ( expressionPart , currentFact . getClassName ( ) , currentFact . getType ( ) ) ; } }
If the bound type is not in the DMO it probably hasn t been imported . So we have little option than to fall back to keeping the value as Text .