Value key = new DocumentKey(document.getCollection().getId(), document.getResourceType(), document.getDocId());
Value key = new CollectionStore.DocumentKey(document.getCollection().getId(), document.getResourceType(), document.getDocId());
    private void removeResourceMetadata(final Txn transaction, final DocumentImpl document) {        // remove document metadata        Lock lock = collectionsDb.getLock();        try {            lock.acquire();                        LOG.debug("Removing resource metadata for " + document.getDocId());            Value key = new DocumentKey(document.getCollection().getId(), document.getResourceType(), document.getDocId());            collectionsDb.remove(transaction, key);        } catch (ReadOnlyException e) {            LOG.warn(DATABASE_IS_READ_ONLY);        } catch (LockException e) {            LOG.warn("Failed to acquire lock on " + collectionsDb.getFile().getName());        } finally {            lock.release();        }    }