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);
try { domDb.flush(); } catch (DBException e) { LOG.warn("error while flushing dom.dbx", e); } 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;			}