public void removeBinaryResource(final BLOBDocument blob)
public void removeBinaryResource(final BinaryDocument blob)
	public void removeBinaryResource(final BLOBDocument blob)		throws PermissionDeniedException {		if (readOnly)			throw new PermissionDeniedException("database is read-only");		if (!blob.getCollection().getPermissions().validate(user, Permission.WRITE))			throw new PermissionDeniedException(				"write access to collection denied; user=" + user.getName());		if (!blob.getPermissions().validate(user, Permission.WRITE))			throw new PermissionDeniedException("permission to remove document denied");		LOG.info("removing binary resource " + blob.getDocId() + "...");		new DOMTransaction(this, domDb, Lock.WRITE_LOCK) {			public Object start() throws ReadOnlyException {				domDb.remove(blob.getAddress());				domDb.removeOverflowValue(blob.getPage());				return null;			}		}		.run();	}