public boolean isCommitted(OutputNode node){
  return !active.contains(node);
}

public boolean isCommitted ( OutputNode node ) { return ! active . contains ( node ) ; }
this is used to determine if the specified node has been committed . if this returns tre then the node is committed and cannot be used to add further child elements .
