code: protected Locale getLocale( HttpServletRequest request )
      {
  
          HttpSession session = request.getSession();
          Locale locale = ( Locale ) session.getAttribute( Globals.LOCALE_KEY );
          return locale != null ? locale : DEFAULT_LOCALE;
      }
docs: Return the user's currently selected Locale.
  
  @param request the current request.
  @return the user's currently selected Locale, stored in the session.
  @deprecated Use {@link #getLocale} or {@link #retrieveUserLocale}.