code: static Object getLabel(FacesContext context, 
                                          UIComponent component) {
                                          
          Object o = component.getAttributes().get("label");
          if (o == null || (o instanceof String && ((String) o).length() == 0)) {
              o = component.getValueExpression("label");
          }
          // Use the "clientId" if there was no label specified.
          if (o == null) {
              o = component.getClientId(context);
          }
          return o;
      }
docs: <p>Returns the <code>label</code> property from the specified
  component.</p>
  
  @param context   - the <code>FacesContext</code> for the current request
  @param component - the component of interest
  
  @return the label, if any, of the component