code: public static String getLabelFor(InputComponent<?, ?> input, boolean addColon)
     {
        String label = input.getLabel();
        // If no label was provided, use name
        if (label == null)
        {
           label = input.getName();
        }
        // if a colon is required, add it
        if (addColon && !label.endsWith(COLON))
        {
           label += COLON;
        }
        return label;
     }
docs: Returns the label for this component
  
  @param input the input component
  @param addColon should a colon be added in the end of the label ?
  @return the label with a colon in the end if addColon is true