@Override
  public void addContent(Parent parent, Content child) {
    if (parent instanceof Document) {
      ((Document)parent).addContent(child);
    }
    else {
      ((Element)parent).addContent(child);
    }
  }
@Override
  public void addContent(Parent parent, Content child)