public void addFragment(XmlFragment fragment){
  assertNotNull(fragment);
  fragments.add(fragment);
  fragment.setParent(this);
}

public void addFragment ( XmlFragment fragment ) { assertNotNull ( fragment ) ; fragments . add ( fragment ) ; fragment . setParent ( this ) ; }
adds a fragment to the fragment list . sets its parent to this node .
