code:     protected Locale getLocaleFromParam(Object requestedLocale) {
          Locale locale = null;
          if (requestedLocale != null) {
              locale = (requestedLocale instanceof Locale) ?
                      (Locale) requestedLocale :
                      LocalizedTextUtil.localeFromString(requestedLocale.toString(), null);
              if (locale != null) {
                  LOG.debug("Applied request locale: {}", locale);
              }
          }
          return locale;
      }
  
      /**
       * Reads the locale from the session, and if not found from the
       * current invocation (=browser)
       *
       * @param invocation the current invocation
       * @param session the current session
       * @return the read locale
       */
  