Value key = new DocumentKey(doc.getCollection().getId(), doc.getResourceType(), doc.getDocId());
Value key = new CollectionStore.DocumentKey(doc.getCollection().getId(), doc.getResourceType(), doc.getDocId());
    public void storeXMLResource(final Txn transaction, final DocumentImpl doc) {        Lock lock = collectionsDb.getLock();        try {            lock.acquire();            final VariableByteOutputStream ostream = new VariableByteOutputStream(8);            doc.getMetadata().write(ostream);            long metaPointer = collectionsDb.storeValue(transaction, ostream.data());            ostream.clear();            doc.setMetadataLocation(metaPointer);            doc.write(ostream);            Value key = new DocumentKey(doc.getCollection().getId(), doc.getResourceType(), doc.getDocId());            collectionsDb.put(transaction, key, ostream.data(), true);        } catch (ReadOnlyException e) {            LOG.warn(DATABASE_IS_READ_ONLY);        } catch (LockException e) {            LOG.warn("Failed to acquire lock on " + collectionsDb.getFile().getName());        } catch (IOException e) {            LOG.warn("IOException while writing document data", e);        } finally {            lock.release();        }    }