if (data.length == 0) { blob.setPage(-1); return; }
    public void storeBinaryResource(final Txn transaction, final BinaryDocument blob, final byte[] data) {        new DOMTransaction(this, domDb, Lock.WRITE_LOCK) {            public Object start() throws ReadOnlyException {                LOG.debug("Storing binary resource " + blob.getFileName());                blob.setPage(domDb.addBinary(transaction, blob, data));                return null;            }        }        .run();    }    