public Object start() throws ReadOnlyException { long address = -1; final byte data[] = node.serialize(); if (nodeType == Node.TEXT_NODE || nodeType == Node.ATTRIBUTE_NODE || doc.getTreeLevel(gid) > depth) address = domDb.add(data); else { address = domDb.put(new NodeRef(doc.getDocId(), gid), data);
public Object start() { NodeImpl node = (NodeImpl)doc.getFirstChild(); domDb.removeAll(node.getInternalAddress()); return null;
			public Object start() throws ReadOnlyException {				long address = -1;				final byte data[] = node.serialize();				if (nodeType == Node.TEXT_NODE					|| nodeType == Node.ATTRIBUTE_NODE					|| doc.getTreeLevel(gid) > depth)					address = domDb.add(data);				else {					address = domDb.put(new NodeRef(doc.getDocId(), gid), data);				}				if (address < 0)					LOG.warn("address is missing");				node.setInternalAddress(address);				ByteArrayPool.releaseByteArray(data);				return null;			}