docs: public void updateGeneralSettings(
          CmsObject cms,
          String defaulrUri,
          Map<String, CmsSSLMode> workplaceServers,
          String sharedFolder)
      throws CmsException {
  
          CmsObject clone = OpenCms.initCmsObject(cms);
          clone.getRequestContext().setSiteRoot("");
  
          // set the shared folder
          if ((sharedFolder == null)
              || sharedFolder.equals("")
              || sharedFolder.equals("/")
              || !sharedFolder.startsWith("/")
              || !sharedFolder.endsWith("/")
              || sharedFolder.startsWith("/sites/")) {
              throw new CmsException(
                  Messages.get().container(Messages.ERR_INVALID_PATH_FOR_SHARED_FOLDER_1, sharedFolder));
          }
  
          m_frozen = false;
          setDefaultUri(clone.readResource(defaulrUri).getRootPath());
          setSharedFolder(clone.readResource(sharedFolder).getRootPath());
          m_workplaceServers = workplaceServers;
          initialize(cms);
          m_frozen = true;
      }