public Object start() throws ReadOnlyException { if (doc.getAddress() > -1) { domDb.remove(doc.getAddress());
public Object start() { try { domDb.remove(idx, null); domDb.flush(); } catch (BTreeException e) { LOG.warn("start() - " + "error while removing doc", e); } catch (DBException e) { LOG.warn("start() - " + "error while removing doc", e); } catch (IOException e) { LOG.warn("start() - " + "error while removing doc", e); } catch (TerminatedException e) { LOG.warn("method terminated", e); } return null;
			public Object start() throws ReadOnlyException {				if (doc.getAddress() > -1) {					domDb.remove(doc.getAddress());				}				doc.setAddress(domDb.add(data));				return null;			}