code: public static ValueExpression createValueExpression(String p_expression, Class<?> expectedType) {
  		FacesContext context = FacesContext.getCurrentInstance();
  		ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
  		ELContext elContext = context.getELContext();
  		if (null == expectedType) {
  			LOGGER.severe("The expected type of " + p_expression + " is null. Defaulting to String.");
  			expectedType = String.class;
  		}
  		ValueExpression vex = expressionFactory.createValueExpression(elContext, p_expression, expectedType);
  		return vex;
  	}
docs: Utility method to create a JSF Value expression from p_expression with
  exprectedType class as return
  
  @param p_expression
  @param expectedType
  @return