*/
private void removeResourceMetadata(final Txn transaction, final DocumentImpl document) {
// remove document metadata
final Lock lock = collectionsDb.getLock();
try {
lock.acquire(Lock.READ_LOCK);
if(LOG.isDebugEnabled()) {
LOG.debug("Removing resource metadata for " + document.getDocId());
}
final Value key = new CollectionStore.DocumentKey(document.getCollection().getId(), document.getResourceType(), document.getDocId());
collectionsDb.remove(transaction, key);