docs: public void setLocale(Locale locale) throws CmsException {
  
          CmsUserSettings settings = getSettings();
          if (settings != null) {
              settings.setLocale(locale);
              settings.save(m_cms);
              m_messages = Messages.get().getBundle(locale);
          }
      }