/** Sets the response locale if changeResponseLocale attribute is true */
  public int doEndTag() throws JspException {
    if (_changeResponseLocale) {
      // set the locale for the response
      Locale bundleLocale = _bundle.getLocale();
      if ((bundleLocale != null) && !("".equals(bundleLocale.getLanguage()))) {
        pageContext.getResponse().setLocale(bundleLocale);
      }
    }

    // cache the bundle for use by message tags within this request

    ResourceHelper.setBundle(pageContext, _bundle, _scope);

    return EVAL_PAGE;
  }