if (multiWindowScript) { writeScriptTag_multiWindow(facesContext, writer, cameliaScriptURI, jsBaseURI, repository, repositoryContext);
if (appParams.multiWindowScript) { writeScriptTag_multiWindow(facesContext, writer, cameliaScriptURI, jsBaseURI, repository, repositoryContext);
    public int doStartTag() throws JspException {        int ret = super.doStartTag();        JspWriter writer = pageContext.getOut();        if (disabledCookiesPageURL == null) {            disabledCookiesPageURL = defaultDisabledCookiesPageURL;        }        if ("false".equals(disabledCookiesPageURL)) {            disabledCookiesPageURL = null;        }        if (disabledScriptPageURL == null) {            disabledScriptPageURL = defaultDisabledScriptPageURL;        }        if ("false".equals(disabledScriptPageURL)) {            disabledScriptPageURL = null;        }        if (invalidBrowserPageURL == null) {            invalidBrowserPageURL = defaultInvalidBrowserPageURL;        }        if ("false".equals(invalidBrowserPageURL)) {            invalidBrowserPageURL = null;        }        setScriptType(IHtmlRenderContext.JAVASCRIPT_TYPE);        try {            FacesContext facesContext = FacesContext.getCurrentInstance();            ServletContext servletContext = pageContext.getServletContext();            if (disableCache) {                disableCache(writer);            }            if (htmlProcessContext.useMetaContentScriptType()) {                writer                        .print("<META http-equiv=\"Content-Script-Type\" content=\"");                writer.print(IHtmlRenderContext.JAVASCRIPT_TYPE);                // writer.print("; charset=UTF-8");                writer.println("\" />");            }            if (htmlProcessContext.useMetaContentStyleType()) {                writer                        .print("<META http-equiv=\"Content-Style-Type\" content=\"");                writer.print(IHtmlRenderContext.CSS_TYPE);                // writer.print("; charset=UTF-8");                writer.println("\" />");            }            if (disableIEImageBar) {                // Desactive la toolbar Image de IE !                writer                        .println("<META http-equiv=\"imagetoolbar\" content=\"no\" />");            }            if (base != null) {                if (renderBaseTag) {                    writer.print("<BASE href=\"");                }                if ("context".equals(base)) {                    String contextPath = facesContext.getExternalContext()                            .getRequestContextPath();                    contextPath += "/";                    htmlProcessContext.changeBaseHREF(contextPath);                } else {                    htmlProcessContext.changeBaseHREF(base);                }                if (renderBaseTag) {                    URLFormCodec.writeURL(writer, base);                    if (base.endsWith("/") == false) {                        writer.print('/');                    }                    writer.println("\" />");                }                if (LOG.isDebugEnabled()) {                    LOG.debug("Set BASE href='" + base + "'.");                }            }            if (favoriteImageURL == null) {                favoriteImageURL = servletContext                        .getInitParameter(FAVORITE_IMAGE_URL_PARAMETER);            }            if (favoriteImageURL != null) {                writeFavoriteImageURL(writer, facesContext);            }            ICssConfig cssConfig = StylesheetsServlet                    .getConfig(htmlProcessContext);            if (cssConfig != null) {                writer.print("<LINK rel=\"stylesheet\"");                if (htmlProcessContext.useMetaContentStyleType() == false) {                    writer.print(" type=\"text/css\"");                }                String styleSheetURI = htmlProcessContext                        .getStyleSheetURI(cssConfig.getStyleSheetFileName());                writer.print(" href=\"");                URLFormCodec.writeURL(writer, styleSheetURI);                writer.println("\" />");            }            if (disabledScriptPageURL != null) {                writeDisabledScriptPageURL(facesContext, writer);            }            IRepository repository = JavaScriptRepositoryServlet                    .getRepository(facesContext);            IRepository.ISet bootSet = repository.getBootSet();            if (bootSet != null) {                IRepository.IContext repositoryContext = JavaScriptRepositoryServlet                        .getContextRepository(facesContext);                if (repositoryContext.add(bootSet)) {                    // Il n'est pas connu du repository !                    String cameliaScriptURI = bootSet.getURI(repositoryContext                            .getLocale());                    String jsBaseURI = repository                            .getBaseURI(htmlProcessContext);                    if (multiWindowScript) {                        writeScriptTag_multiWindow(facesContext, writer,                                cameliaScriptURI, jsBaseURI, repository,                                repositoryContext);                    } else {                        writeScriptTag(facesContext, writer, cameliaScriptURI,                                jsBaseURI);                    }                }            }            if (invalidBrowserPageURL != null) {                initializeJavaScript(facesContext, writer, htmlProcessContext);            }            if (title != null) {                writeTitle(writer, facesContext);            }        } catch (IOException e) {            throw new JspException(e);        }        metaDataInitialized();        return ret;    }