if (blob.getPage() < 0) return new byte[0];
    public byte[] getBinaryResource(final BinaryDocument blob) {        byte[] data = (byte[]) new DOMTransaction(this, domDb, Lock.WRITE_LOCK) {            public Object start() throws ReadOnlyException {                return domDb.getBinary(blob.getPage());            }        }        .run();        return data;    }