}
  void addChildNodes(Node context, Collection acc, boolean recurse)  {    Node child = context.getFirstChild();    while (child != null)      {        acc.add(child);        if (recurse)          {            addChildNodes(child, acc, recurse);          }        child = child.getNextSibling();      }  }