docs: private void createSitemapContentFolder(CmsObject cms, CmsResource subSitemapFolder, String contentFolder)
      throws CmsException, CmsLoaderException {
  
          CmsResource configFile = null;
          String sitePath = cms.getSitePath(subSitemapFolder);
          String folderName = CmsStringUtil.joinPaths(sitePath, CmsADEManager.CONTENT_FOLDER_NAME + "/");
          String sitemapConfigName = CmsStringUtil.joinPaths(folderName, CmsADEManager.CONFIG_FILE_NAME);
          if (!cms.existsResource(folderName)) {
              cms.createResource(
                  folderName,
                  OpenCms.getResourceManager().getResourceType(CmsADEManager.CONFIG_FOLDER_TYPE));
          }
          I_CmsResourceType configType = OpenCms.getResourceManager().getResourceType(CmsADEManager.CONFIG_TYPE);
          if (cms.existsResource(sitemapConfigName)) {
              configFile = cms.readResource(sitemapConfigName);
              if (!OpenCms.getResourceManager().getResourceType(configFile).getTypeName().equals(
                  configType.getTypeName())) {
                  throw new CmsException(
                      Messages.get().container(
                          Messages.ERR_CREATING_SUB_SITEMAP_WRONG_CONFIG_FILE_TYPE_2,
                          sitemapConfigName,
                          CmsADEManager.CONFIG_TYPE));
              }
          } else {
              configFile = cms.createResource(
                  sitemapConfigName,
                  OpenCms.getResourceManager().getResourceType(CmsADEManager.CONFIG_TYPE));
          }
  
          if (configFile != null) {
              try {
                  CmsResource newFolder = m_cms.createResource(
                      contentFolder + NEW,
                      OpenCms.getResourceManager().getResourceType(CmsResourceTypeFolder.RESOURCE_TYPE_NAME));
                  I_CmsResourceType containerType = OpenCms.getResourceManager().getResourceType(
                      org.opencms.file.types.CmsResourceTypeXmlContainerPage.RESOURCE_TYPE_NAME);
                  CmsResource modelPage = m_cms.createResource(newFolder.getRootPath() + BLANK_HTML, containerType);
                  String defTitle = Messages.get().getBundle(m_cms.getRequestContext().getLocale()).key(
                      Messages.GUI_DEFAULT_MODEL_TITLE_1,
                      m_site.getTitle());
                  String defDes = Messages.get().getBundle(m_cms.getRequestContext().getLocale()).key(
                      Messages.GUI_DEFAULT_MODEL_DESCRIPTION_1,
                      m_site.getTitle());
                  CmsProperty prop = new CmsProperty(CmsPropertyDefinition.PROPERTY_TITLE, defTitle, defTitle);
                  m_cms.writePropertyObject(modelPage.getRootPath(), prop);
                  prop = new CmsProperty(CmsPropertyDefinition.PROPERTY_DESCRIPTION, defDes, defDes);
                  m_cms.writePropertyObject(modelPage.getRootPath(), prop);
                  CmsFile file = m_cms.readFile(configFile);
                  CmsXmlContent con = CmsXmlContentFactory.unmarshal(m_cms, file);
                  con.addValue(m_cms, MODEL_PAGE, Locale.ENGLISH, 0);
                  I_CmsXmlContentValue val = con.getValue(MODEL_PAGE_PAGE, Locale.ENGLISH);
                  val.setStringValue(m_cms, modelPage.getRootPath());
                  file.setContents(con.marshal());
                  m_cms.writeFile(file);
              } catch (CmsException e) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
      }