DataTypeFactory.createFromObject(result), DataTypeFactory.create(getReturnClass()));
result = t.transform(result);
}
catch (TransformerException e)
{
throw new ExpressionRuntimeException(CoreMessages.transformUnexpectedType(result.getClass(),
getReturnClass()), e);
}
}
// if(result instanceof Collection && ((Collection)result).size()==0 && !isOptional())