if (doc.getAddress() > -1) { domDb.remove(doc.getAddress());
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() throws ReadOnlyException {				if (doc.getAddress() > -1) {					domDb.remove(doc.getAddress());				}				doc.setAddress(domDb.add(data));				return null;			}