code: public static CmsXmlContainerPage createDocument(
          CmsObject cms,
          Locale locale,
          String encoding,
          CmsXmlContentDefinition contentDefinition) {
  
          // create the XML content
          CmsXmlContainerPage content = new CmsXmlContainerPage(cms, locale, encoding, contentDefinition);
          // call prepare for use content handler and return the result
          return (CmsXmlContainerPage)content.getHandler().prepareForUse(cms, content);
      }
docs: Create a new instance of a container page based on the given content definition,
  that will have one language node for the given locale all initialized with default values.<p>
  
  The given encoding is used when marshalling the XML again later.<p>
  
  @param cms the current users OpenCms content
  @param locale the locale to generate the default content for
  @param encoding the encoding to use when marshalling the XML content later
  @param contentDefinition the content definition to create the content for
  
  @return the created container page