docs: public boolean saveDetailPages(CmsObject cms, String rootPath, List<CmsDetailPageInfo> detailPages, CmsUUID newId)
      throws CmsException {
  
          CmsADEConfigData configData = lookupConfiguration(cms, rootPath);
          CmsDetailPageConfigurationWriter configWriter;
          String originalSiteRoot = cms.getRequestContext().getSiteRoot();
          try {
              cms.getRequestContext().setSiteRoot("");
              if (configData.isModuleConfiguration()) {
                  return false;
              }
              CmsResource configFile = configData.getResource();
              configWriter = new CmsDetailPageConfigurationWriter(cms, configFile);
              configWriter.updateAndSave(detailPages, newId);
              return true;
          } finally {
              cms.getRequestContext().setSiteRoot(originalSiteRoot);
          }
      }