public static Object getLabel(FacesContext facesContext, UIComponent component) {
        String label = (String) component.getAttributes().get("label");

        if (label == null) {
            label = component.getClientId(facesContext);
        }

        return label;
    }
Creates an RFC 6266 Content-Dispostion header following all UTF-8 conventions.
<p>
@param value e.g. "attachment"
@param filename the name of the file
@return a valid Content-Disposition header in UTF-8 format
primefaces/src/main/java/org/primefaces/util/ComponentUtils.java