code: boolean saveOptions() {
  
          //Enable history?
          boolean enabled = ((ComboBoxVersionsBean)m_numberVersions.getValue()).getValue() != CmsFileHistoryApp.NUMBER_VERSIONS_DISABLED;
  
          //Maximal count of versions for current resources.
          int versions = ((ComboBoxVersionsBean)m_numberVersions.getValue()).getValue();
  
          //Maximal count of versions for deleted resources.
          int versionsDeleted = versions;
  
          if (m_mode.getValue().equals(CmsFileHistoryApp.MODE_DISABLED)) {
              versionsDeleted = 0;
          }
          if (m_mode.getValue().equals(CmsFileHistoryApp.MODE_WITHOUTVERSIONS)) {
              versionsDeleted = 1;
          }
  
          if (m_mode.getValue().equals(CmsFileHistoryApp.MODE_WITHVERSIONS)
              && (versions == CmsFileHistoryApp.NUMBER_VERSIONS_DISABLED)) {
              return false;
          }
          OpenCms.getSystemInfo().setVersionHistorySettings(enabled, versions, versionsDeleted);
          OpenCms.writeConfiguration(CmsSystemConfiguration.class);
  
          return true;
      }
docs: Saves the options.<p>
  
  @return Path to be called in app.