code: public Locale getWorkplaceLocale(CmsRequestContext requestContext) {
  
          Locale wpLocale = new CmsUserSettings(requestContext.getCurrentUser()).getLocale();
          if (wpLocale == null) {
              // fall back
              wpLocale = getDefaultLocale();
              if (wpLocale == null) {
                  // fall back
                  wpLocale = requestContext.getLocale();
              }
          }
          return wpLocale;
  
      }
docs: Gets the workplace locale for the given request context.<p>
  
  @param requestContext the request context
  
  @return the workplace locale for the request context