code: private CmsObject initCms(CmsObject cms) {
  
          try {
              cms = OpenCms.initCmsObject(cms);
          } catch (CmsException e) {
              LOG.error("Unable to init CmsObject");
          }
          cms.getRequestContext().setSiteRoot("");
          return cms;
      }
docs: Clones given CmsObject and switches to root site.<p>
  
  @param cms given CmsObject
  @return cloned CmsObject