public String getStyleClassName( IComponentRenderContext componentRenderContext, UIComponent component, String suffix) { if (component instanceof IStyleClassCapability) { IStyleClassCapability styleClassCapability = (IStyleClassCapability) component;  String cssClass = styleClassCapability.getStyleClass(); if (cssClass != null) { if (suffix == null) { return cssClass; } return cssClass + suffix; } }  String cssClass = getDefaultCssClassName(); if (suffix == null) { return cssClass; } return cssClass + suffix;
public final String getStyleClassName( IComponentRenderContext componentRenderContext) { return getStyleClassName(componentRenderContext, componentRenderContext .getComponent(), null);
    public String getStyleClassName(            IComponentRenderContext componentRenderContext,            UIComponent component, String suffix) {        if (component instanceof IStyleClassCapability) {            IStyleClassCapability styleClassCapability = (IStyleClassCapability) component;            String cssClass = styleClassCapability.getStyleClass();            if (cssClass != null) {                if (suffix == null) {                    return cssClass;                }                return cssClass + suffix;            }        }        String cssClass = getDefaultCssClassName();        if (suffix == null) {            return cssClass;        }        return cssClass + suffix;    }