protected void preXMLTableOfContentsCreate(XSOMSchemaTreeWalker sw, XMLTreeOutputWalker tw) {

    TreeNode root = sw.getRoot();
    TreeNode node = tw.findNode(root, "namedCache", "infinispan");
    node.detach();

    PruneTreeWalker ptw = new PruneTreeWalker("property");
    ptw.postOrderTraverse(root);
  }
 public void visitNode(TreeNode treeNode) {
   if (treeNode.getName().equals(pruneNodeName)) {
     treeNode.detach();
   }
 }