public Object start() throws ReadOnlyException { if (internalAddress != BFile.UNKNOWN_ADDRESS) domDb.update(transaction, internalAddress, data); else { domDb.update(transaction, new NodeRef(doc.getDocId(), node.getNodeId()), data); } return null;
public Object start() { long address = previous.getInternalAddress(); if (address != BFile.UNKNOWN_ADDRESS) { address = domDb.insertAfter(transaction, doc, address, data); } else { NodeRef ref = new NodeRef(doc.getDocId(), previous.getNodeId()); address = domDb.insertAfter(transaction, doc, ref, data);
                public Object start() throws ReadOnlyException {                    if (internalAddress != BFile.UNKNOWN_ADDRESS)                        domDb.update(transaction, internalAddress, data);                    else {                        domDb.update(transaction, new NodeRef(doc.getDocId(), node.getNodeId()), data);                    }                    return null;                }