code: public Document buildPage(ContentElement content) {
      Document doc = documentBuilder.newDocument();
      Element jcrRoot = createJcrRoot(doc, NT_PAGE);
      Element jcrContent = createJcrContent(doc, jcrRoot, NT_PAGE_CONTENT);
  
      exportPayload(doc, jcrContent, content);
  
      return doc;
    }
docs: Build XML for cq:Page.
  @param content Hierarchy of content elements.
  @return cq:Page JCR XML