private void checkForSiteRoot(JcrNode webNode) {
if (!webNode.hasNode(SITE_NODE_NAME)) {
JcrNode site = webNode.addNode(SITE_NODE_NAME, "nt:folder");
site.addMixin(BrixNode.JCR_TYPE_BRIX_NODE);
JcrNodeIterator nodes = webNode.getNodes();
while (nodes.hasNext()) {
BrixNode node = (BrixNode) nodes.nextNode();
if (node.isSame(site) == false && node instanceof GlobalContainerNode == false) {
JcrSession session = webNode.getSession();
session.move(node.getPath(), site.getPath() + "/" + node.getName());
}
}