code: public static Class<?> getAttributeType(UIComponent component, String attribute) {
  		ValueExpression valueExpression = component.getValueExpression(attribute);
  		return valueExpression == null
  			? null
  			: valueExpression.getType(FacesContext.getCurrentInstance().getELContext());
  	}
docs: Returns type of the provided attribute name's {@link ValueExpression} of the provided component.
  
  @param component Component to get attribute type for.
  @param attribute Attribute to get type for.
  
  @return Type of the provided attribute name's {@link ValueExpression} of the provided component.