code: public static String getLabel(FacesContext context, UIComponent comp) {
  		Object o = comp.getAttributes().get("label");
  		if (o == null || (o instanceof String && ((String) o).length() == 0)) {
  			ValueExpression vex = comp.getValueExpression("label");
  			if (null != vex)
  				return (String) vex.getValue(context.getELContext());
  		}
  		if (o == null) {
  			// Use the "clientId" if there was no label specified.
  			o = comp.getClientId(context);
  		}
  		return (String) o;
  	}
docs: <p>
  Returns the <code>label</code> property from the specified component.
  </p>
  Simplified and adapted version of the implementation of Mojarra 2.2.8-b02
  (see MessageFactory).
  
  @param context
  - the <code>FacesContext</code> for the current request
  
  @return the label, if any, of the component