code: public static Class<?> getValueType(FacesContext context, UIComponent comp) {
  		ValueExpression expr = comp.getValueExpression("value");
  		Class<?> valueType = expr == null ? null : expr.getType(context.getELContext());
  		return valueType;
  	}
docs: return the type for the "value" attribute of the given component, if it exists. Return null otherwise.
  @param context
  @param comp
  @return