protected void cleanupChildren(){
  if (children.size() == 0) {
    children=null;
  }
}

protected void cleanupChildren ( ) { if ( children . size ( ) == 0 ) { children = null ; } }
removes the children list if this node has no children anymore ; checks if the provided node is a schema node and doesn ' t have any children anymore , its deleted .
