code: public void updateAndSave(List<CmsDetailPageInfo> infos, CmsUUID newId) throws CmsException {
  
          if (m_resource != null) {
              getDocument();
              removeOldValues();
              writeDetailPageInfos(infos, newId);
              m_document.setAutoCorrectionEnabled(true);
              m_document.correctXmlStructure(m_cms);
              byte[] content = m_document.marshal();
              m_file.setContents(content);
              m_cms.writeFile(m_file);
          }
      }
docs: Writes the new detail page information to the configuration file.<p>
  
  @param infos the new detail page information
  @param newId the id to use for new pages
  
  @throws CmsException if something goes wrong