code: private Class<?> getExpectedType(final ELContext context, final ExpressionFactory factory, final String expression)
              throws ELException
     {
        ValueExpression ve = factory.createValueExpression(context, expression, Object.class);
        return ve.getType(context);
     }
docs: Helpers