//final List<DOMNode> elements = pageToClone.getProperty(Page.elements);
DOMNode firstChild = (DOMNode) pageToClone.getFirstChild().getNextSibling();
if (firstChild == null) {
firstChild = (DOMNode) pageToClone.treeGetFirstChild();
}
final DOMNode newHtmlNode = cloneAndAppendChildren(securityContext, firstChild);
final Page newPage = Page.createNewPage(securityContext, newName);