ExternalContext externalContext = facesContext.getExternalContext();  this.externalContext = initializeExternalContext(externalContext);
this.externalContext = initializeExternalContext(facesContext);
    public int doStartTag() throws JspException {        FacesContext facesContext = FacesContext.getCurrentInstance();        if (facesContext == null) {            throw new JspException("FacesContext is not initialized !");        }        ExternalContext externalContext = facesContext.getExternalContext();        this.externalContext = initializeExternalContext(externalContext);        initializeTag();        if (attributesLocale != null) {            Locale locale = (Locale) LocaleConverter.SINGLETON.getAsObject(                    null, null, attributesLocale);            if (locale == null) {                throw new FacesException("Invalid locale name '"                        + attributesLocale                        + "' specified by attribute 'attributesLocale'.");            }            ContextTools.setAttributesLocale(facesContext.getExternalContext(),                    locale);        }        return super.doStartTag();    }