code: protected void setLocale( HttpServletRequest request, Locale locale )
      {
  
          HttpSession session = request.getSession();
          if ( locale == null )
          {
              locale = getDefaultLocale();
          }
          session.setAttribute( Globals.LOCALE_KEY, locale );
  
      }
docs: Set the user's currently selected Locale.
  
  @param request The request we are processing
  @param locale  The user's selected Locale to be set, or null
  to select the server's default Locale
  @deprecated Use {@link #setLocale(Locale)}.