docs: public CmsObject createRootCms(CmsObject cms) throws CmsException {
  
          CmsObject rootCms = OpenCms.initCmsObject(cms);
          Object logEntry = cms.getRequestContext().getAttribute(CmsLogEntry.ATTR_LOG_ENTRY);
          if (logEntry != null) {
              rootCms.getRequestContext().setAttribute(CmsLogEntry.ATTR_LOG_ENTRY, logEntry);
          }
          rootCms.getRequestContext().setSiteRoot("/");
          return rootCms;
      }