code: public void addFragment(XmlFragment fragment) {
          assertNotNull(fragment);
          fragments.add(fragment);
          fragment.setParent(this);
      }
docs: Adds a fragment to the fragment list.  Sets its parent to this node.
  @throws IllegalArgumentException} if {@code fragment} is {@code null}