System.out.println("Indexing in-memory node of type " + doc.nodeKind[nodeNr]);
System.out.println("Skipped indexing of in-memory node of type " + doc.nodeKind[nodeNr]);
    private void startNode(int nodeNr, NodePath currentPath) {    	ElementImpl last;    	switch (doc.nodeKind[nodeNr]) {    	case Node.ELEMENT_NODE :            ElementImpl elem = new ElementImpl(NodeProxy.DOCUMENT_ELEMENT_GID);            if(stack.empty()) {                initElement(nodeNr, elem);                stack.push(elem);                broker.storeNode(transaction, elem, currentPath);                targetDoc.appendChild(elem);                elem.setChildCount(0);            } else {                last = (ElementImpl) stack.peek();                initElement(nodeNr, elem);                last.appendChildInternal(elem);                stack.push(elem);                broker.storeNode(transaction, elem, currentPath);                elem.setChildCount(0);            }            currentPath.addComponent(elem.getQName());            storeAttributes(nodeNr, elem, currentPath);            break;    	case Node.TEXT_NODE :            last = (ElementImpl) stack.peek();            text.setData(new String(doc.characters, doc.alpha[nodeNr], doc.alphaLen[nodeNr]));            text.setOwnerDocument(targetDoc);            last.appendChildInternal(text);            broker.storeNode(transaction, text, null);            text.clear();            break;    	case Node.COMMENT_NODE :                        comment.setData(doc.characters, doc.alpha[nodeNr], doc.alphaLen[nodeNr]);            comment.setOwnerDocument(targetDoc);            if (stack.empty()) {                comment.setGID(NodeProxy.DOCUMENT_ELEMENT_GID);                targetDoc.appendChild(comment);            } else {                last = (ElementImpl) stack.peek();                last.appendChildInternal(comment);            }            broker.storeNode(transaction, comment, null);            comment.clear();            break;    	case Node.PROCESSING_INSTRUCTION_NODE :            QName qn = (QName)doc.namePool.get(doc.nodeName[nodeNr]);            pi.setTarget(qn.getLocalName());            pi.setData(new String(doc.characters, doc.alpha[nodeNr], doc.alphaLen[nodeNr]));            pi.setOwnerDocument(targetDoc);            if (stack.empty()) {                pi.setGID(NodeProxy.DOCUMENT_ELEMENT_GID);                targetDoc.appendChild(pi);            } else {                last = (ElementImpl) stack.peek();                last.appendChildInternal(pi);            }            broker.storeNode(transaction, pi, null);            pi.clear();            break;        default:        	System.out.println("Indexing in-memory node of type " + doc.nodeKind[nodeNr]);        }    }