writer.writeCall(null, "f_setDisabledImageURL").write(
writer.writeMethodCall("f_setDisabledImageURL").write(
    public final void encodeJavaScript(IJavaScriptWriter writer)            throws WriterException {        this.javaScriptWriter = writer;        try {            IComponentRenderContext componentContext = writer                    .getComponentRenderContext();            FacesContext facesContext = componentContext.getFacesContext();            IImageButtonFamilly component = (IImageButtonFamilly) componentContext                    .getComponent();            String originalImageURL = component.getImageURL(facesContext);            if (componentContext.containsAttribute(DISABLED_IMAGE_RENDERED) == false) {                String disabledImageURL = component                        .getDisabledImageURL(facesContext);                if (disabledImageURL != null) {                    disabledImageURL = AbstractCameliaRenderer.rewriteURL(                            componentContext,                            IURLRewritingProvider.IMAGE_URL_TYPE,                            "disabledImageURL", disabledImageURL,                            originalImageURL);                    if (disabledImageURL != null) {                        disabledImageURL = writer                                .allocateString(disabledImageURL);                        writer.writeCall(null, "f_setDisabledImageURL").write(                                disabledImageURL).writeln(");");                    }                }            }            /*             * String hoverImageURL = component.getHoverImageURL(); if             * (hoverImageURL != null) {             * writer.write("f_setHoverImageURL(\"").write(hoverImageURL).writeln(             * "\");"); }             */            if (componentContext.containsAttribute(SELECTED_IMAGE_RENDERED) == false) {                String selectedImageURL = component                        .getSelectedImageURL(facesContext);                if (selectedImageURL != null) {                    selectedImageURL = AbstractCameliaRenderer.rewriteURL(                            componentContext,                            IURLRewritingProvider.IMAGE_URL_TYPE,                            "selectedImageURL", selectedImageURL,                            originalImageURL);                    if (selectedImageURL != null) {                        selectedImageURL = writer                                .allocateString(selectedImageURL);                        writer.writeCall(null, "f_setSelectedImageURL").write(                                selectedImageURL).writeln(");");                    }                }            }        } finally {            this.javaScriptWriter = null;        }        super.encodeJavaScript(writer);    }