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); } node.setInternalAddress(address);
final long address = node.getInternalAddress(); if (address != BFile.UNKNOWN_ADDRESS) domDb.remove(transaction, new NodeRef(doc.getDocId(), node.getNodeId()), address); else domDb.remove(transaction, new NodeRef(doc.getDocId(), node.getNodeId()));
            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);                }                node.setInternalAddress(address);                return null;            }