code: public static ValueExpression createValueExpression(PageContext pageContext, String expression, Class<?> expectedType) {
          ExpressionFactory factory = getExpressionFactory(pageContext);
          return factory.createValueExpression(pageContext.getELContext(), expression, expectedType);
      }
docs: Create a value expression.
  
  @param pageContext  the context in which the expression will be parsed
  @param expression   the expression
  @param expectedType the expected type of result
  @return a parsed expression