new DOMTransaction(this, domDb, Lock.WRITE_LOCK) { public Object start() throws ReadOnlyException { domDb.removeOverflowValue(transaction, blob.getPage()); return null; }
if (blob.getPage() > -1) { new DOMTransaction(this, domDb, Lock.WRITE_LOCK) { public Object start() throws ReadOnlyException { domDb.removeOverflowValue(transaction, blob.getPage()); return null; } } .run();
    public void removeBinaryResource(final Txn transaction, final BinaryDocument blob)    throws PermissionDeniedException {        if (readOnly)            throw new PermissionDeniedException(DATABASE_IS_READ_ONLY);        LOG.info("removing binary resource " + blob.getDocId() + "...");        new DOMTransaction(this, domDb, Lock.WRITE_LOCK) {            public Object start() throws ReadOnlyException {                domDb.removeOverflowValue(transaction, blob.getPage());                return null;            }        }        .run();        removeResourceMetadata(transaction, blob);    }