public Object start() { long address = previous.getInternalAddress(); if (address > -1) address = domDb.insertAfter(doc, address, data); else { NodeRef ref = new NodeRef( doc.getDocId(), previous.getGID()); address = domDb.insertAfter(doc, ref, data);
public Object start() throws ReadOnlyException { final NodeRef ref = new NodeRef(doc.getDocId(), node.getGID()); if (-1 < internalAddress) domDb.update(ref, internalAddress, data); else domDb.update(ref, data); return null;
			public Object start() {				long address = previous.getInternalAddress();				if (address > -1)					address = domDb.insertAfter(doc, address, data);				else {					NodeRef ref =						new NodeRef(							doc.getDocId(),							previous.getGID());					address = domDb.insertAfter(doc, ref, data);				}				node.setInternalAddress(address);				return null;			}