public Element getRootElement() {
    int index = content.indexOfFirstElement();
    if (index < 0) {
      throw new IllegalStateException("Root element not set");
    }
    return (Element)content.get(index);
  }
public Element getRootElement()