docs: public void storeAppSettings(CmsObject cms, Class<? extends I_CmsAppSettings> type, I_CmsAppSettings appSettings) {
  
          CmsUser user = cms.getRequestContext().getCurrentUser();
          CmsUserSettings settings = new CmsUserSettings(user);
  
          String currentSetting = settings.getAdditionalPreference(type.getName(), true);
          String state = appSettings.getSettingsString();
          if (((state == null) && (currentSetting == null)) || ((state != null) && state.equals(currentSetting))) {
              // nothing changed
              return;
          }
  
          settings.setAdditionalPreference(type.getName(), state);
          try {
              settings.save(cms);
          } catch (CmsException e) {
              LOG.error("Failed to store workplace app settings for type " + type.getName(), e);
          }
      }