docs: private static CmsObject adjustSiteRootIfNecessary(final CmsObject cms, final CmsModule module)
      throws CmsException {
  
          CmsObject cmsClone;
          if ((null == module.getSite()) || cms.getRequestContext().getSiteRoot().equals(module.getSite())) {
              cmsClone = cms;
          } else {
              cmsClone = OpenCms.initCmsObject(cms);
              cmsClone.getRequestContext().setSiteRoot(module.getSite());
          }
  
          return cmsClone;
      }