prevNode = last;
setPrevious(last);
    private void endNode(int nodeNr, NodePath currentPath) {        if (doc.nodeKind[nodeNr] == Node.ELEMENT_NODE) {            ElementImpl last = (ElementImpl) stack.pop();            broker.endElement(last, currentPath, null);            currentPath.removeLastComponent();            prevNode = last;        }    }