Value key = new DocumentKey(collection.getId());
Value key = new CollectionStore.DocumentKey(collection.getId());
    public void getCollectionResources(Collection collection) {        Lock lock = collectionsDb.getLock();        try {            lock.acquire();                        Value key = new DocumentKey(collection.getId());            IndexQuery query = new IndexQuery(IndexQuery.TRUNC_RIGHT, key);            collectionsDb.query(query, new DocumentCallback(collection));        } catch (LockException e) {            LOG.warn("Failed to acquire lock on " + collectionsDb.getFile().getName());        } catch (IOException e) {            LOG.warn("IOException while reading document data", e);        } catch (BTreeException e) {            LOG.warn("Exception while reading document data", e);        } catch (TerminatedException e) {            LOG.warn("Exception while reading document data", e);        } finally {            lock.release();        }    }