docs: public int removeAllChildren( Node node ) throws RepositoryException {
          isNotNull(node, "node");
          int childrenRemoved = 0;
          NodeIterator iter = node.getNodes();
          while (iter.hasNext()) {
              Node child = iter.nextNode();
              child.remove();
              ++childrenRemoved;
          }
          return childrenRemoved;
      }