code: public void addPage(String path, ContentElement content) throws IOException {
      String fullPath = buildJcrPathForZip(path) + "/" + DOT_CONTENT_XML;
      Document doc = xmlContentBuilder.buildPage(content);
      writeXmlDocument(fullPath, doc);
    }
docs: Adds a page with given content. The "cq:Page/cq:PageContent envelope" is added automatically.
  @param path Full content path of page.
  @param content Hierarchy of content elements.
  @throws IOException I/O exception