ExternalContext externalContext = getExternalContext() .getExternalContext();  Map application = externalContext.getInitParameterMap();  disableIEImageBar = "false".equals(application .get(DISABLE_IE_IMAGE_BAR_PARAMETER)) == false;  defaultDisabledCookiesPageURL = (String) application .get(DISABLED_COOKIES_PAGE_URL_PARAMETER); if (defaultDisabledCookiesPageURL != null && defaultDisabledCookiesPageURL.trim().length() < 1) { defaultDisabledCookiesPageURL = null; }  defaultDisabledScriptPageURL = (String) application .get(DISABLED_SCRIPT_PAGE_URL_PARAMETER); if (defaultDisabledScriptPageURL != null && defaultDisabledScriptPageURL.trim().length() < 1) { defaultDisabledScriptPageURL = null; }  defaultInvalidBrowserPageURL = (String) application .get(INVALID_BROWSER_PAGE_URL_PARAMETER); if (defaultInvalidBrowserPageURL != null && defaultInvalidBrowserPageURL.trim().length() < 1) { defaultInvalidBrowserPageURL = null; }  multiWindowScript = "true".equalsIgnoreCase((String) application .get(MULTI_WINDOW_PARAMETER));  if (firstLog && LOG.isInfoEnabled()) { firstLog = false;  if (htmlProcessContext.useMetaContentScriptType()) { LOG.info("UseMetaContentScriptType is enabled for context."); }  if (htmlProcessContext.useMetaContentStyleType()) { LOG.info("UseMetaContentStyleType is enabled for context."); }  if (disableIEImageBar) { LOG.info("DisableIEImageBar is enabled for context."); }  if (multiWindowScript) { LOG.info("MultiWindowScript is enabled for context."); }  if (multiWindowScript) { LOG.info("MULTI_WINDOW_ATTRIBUTE is enabled for context."); }  if (htmlProcessContext.getDebugMode()) { LOG.info("DEBUG_MODE is enabled for context."); }  if (htmlProcessContext.getProfilerMode()) { LOG.info("PROFILER_MODE is enabled for context."); } }
    protected void initializeTag() {        ExternalContext externalContext = getExternalContext()                .getExternalContext();        Map application = externalContext.getInitParameterMap();        disableIEImageBar = "false".equals(application                .get(DISABLE_IE_IMAGE_BAR_PARAMETER)) == false;        defaultDisabledCookiesPageURL = (String) application                .get(DISABLED_COOKIES_PAGE_URL_PARAMETER);        if (defaultDisabledCookiesPageURL != null                && defaultDisabledCookiesPageURL.trim().length() < 1) {            defaultDisabledCookiesPageURL = null;        }        defaultDisabledScriptPageURL = (String) application                .get(DISABLED_SCRIPT_PAGE_URL_PARAMETER);        if (defaultDisabledScriptPageURL != null                && defaultDisabledScriptPageURL.trim().length() < 1) {            defaultDisabledScriptPageURL = null;        }        defaultInvalidBrowserPageURL = (String) application                .get(INVALID_BROWSER_PAGE_URL_PARAMETER);        if (defaultInvalidBrowserPageURL != null                && defaultInvalidBrowserPageURL.trim().length() < 1) {            defaultInvalidBrowserPageURL = null;        }        multiWindowScript = "true".equalsIgnoreCase((String) application                .get(MULTI_WINDOW_PARAMETER));        if (firstLog && LOG.isInfoEnabled()) {            firstLog = false;            if (htmlProcessContext.useMetaContentScriptType()) {                LOG.info("UseMetaContentScriptType is enabled for context.");            }            if (htmlProcessContext.useMetaContentStyleType()) {                LOG.info("UseMetaContentStyleType is enabled for context.");            }            if (disableIEImageBar) {                LOG.info("DisableIEImageBar is enabled for context.");            }            if (multiWindowScript) {                LOG.info("MultiWindowScript is enabled for context.");            }            if (multiWindowScript) {                LOG.info("MULTI_WINDOW_ATTRIBUTE is enabled for context.");            }            if (htmlProcessContext.getDebugMode()) {                LOG.info("DEBUG_MODE is enabled for context.");            }            if (htmlProcessContext.getProfilerMode()) {                LOG.info("PROFILER_MODE is enabled for context.");            }        }    }