rootElement = createBranchElement(null, null); reindex(); return (AbstractElement) rootElement;
BranchElement root = (BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY);  Element[] array = new Element[1]; array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1); root.replace(0, 0, array);  return root;
  protected AbstractDocument.AbstractElement createDefaultRoot()  {    rootElement = createBranchElement(null, null);    reindex();    return (AbstractElement) rootElement;  }