public Object start() throws ReadOnlyException { long address = -1; 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);
public Object start() { final long address = node.getInternalAddress(); final NodeRef key = new NodeRef(doc.getDocId(), node.getGID()); if (address > -1) domDb.remove(key, address); else domDb.remove(key);
			public Object start() throws ReadOnlyException {				long address = -1;				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);				return null;			}