code: protected Locale currentLocale()
      {
          ServletRequest req = pageContext.getRequest();
  
          // Create a new session if necessary
          HttpSession session = pageContext.getSession();
          if ((_useLocale) && (session == null))
              session = ((HttpServletRequest) req).getSession();
          if (session == null)
              return null;
  
          // Return any currently set Locale in our session
          Locale current = (Locale) session.getAttribute(Globals.LOCALE_KEY);
          if (current != null)
              return current;
  
          // Configure a new current Locale, if requested
          if (!_useLocale)
              return (null);
          current = req.getLocale();
          if (current != null)
              session.setAttribute(Globals.LOCALE_KEY, current);
          return current;
      }
docs: Return the current Locale for this request, creating a new one if
  necessary.  If there is no current Locale, and locale support is not
  requested, return <code>null</code>.