docs: private static void setCmsOfflineProject(CmsObject cms) {
  
          if (null == cms) {
              return;
          }
  
          final CmsRequestContext cmsContext = cms.getRequestContext();
          final CmsProject cmsProject = cmsContext.getCurrentProject();
  
          if (cmsProject.isOnlineProject()) {
              CmsProject cmsOfflineProject;
              try {
                  cmsOfflineProject = cms.readProject("Offline");
                  cmsContext.setCurrentProject(cmsOfflineProject);
              } catch (CmsException e) {
                  LOG.warn("Could not set the current project to \"Offline\". ");
              }
          }
      }