code: public byte[] createContainerPageXml(CmsObject cms, CmsContainerPageBean cntPage) throws CmsException {
  
          // make sure all links are validated
          writeContainerPage(cms, cntPage);
          checkLinkConcistency(cms);
          return marshal();
  
      }
docs: Saves a container page bean to the in-memory XML structure and returns the changed content.<p>
  
  @param cms the current CMS context
  @param cntPage the container page bean
  @return the new content for the container page
  @throws CmsException if something goes wrong