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