new DOMTransaction(this, domDb) {
new DOMTransaction(this, domDb, Lock.WRITE_LOCK, doc) {
	public void insertAfter(final NodeImpl previous, final NodeImpl node) {		final byte data[] = node.serialize();		final DocumentImpl doc = (DocumentImpl) previous.getOwnerDocument();		new DOMTransaction(this, domDb) {			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;			}		}		.run();	}