int end = 0; if (getElementCount() == 0) end = getLength();
if (children.length == 0) { if (endOffset == -1) throw new NullPointerException("BranchElement has no children."); }
    public int getEndOffset()    {      int end = 0;      if (getElementCount() == 0)        end = getLength(); // FIXME: That ain't correct, fix it.      else        end = children[children.length - 1].getEndOffset();      return end;    }