docs: @SuppressWarnings("deprecation")
      private void adjustFolderType(CmsResource siteRootResource) throws CmsLoaderException, CmsException {
  
          if (OpenCms.getResourceManager().getResourceType(
              CmsResourceTypeFolder.RESOURCE_TYPE_NAME) == OpenCms.getResourceManager().getResourceType(
                  siteRootResource)) {
  
              siteRootResource.setType(
                  OpenCms.getResourceManager().getResourceType(
                      CmsResourceTypeFolderSubSitemap.TYPE_SUBSITEMAP).getTypeId());
              m_cms.writeResource(siteRootResource);
          }
      }