}
}
try {
WriteResult writeResult = dbCollection.update(query.get(), update, false, true);
if (writeResult.getError() != null) {
throw new DocumentStoreException("Update failed: " + writeResult.getError());
}
if (collection == Collection.NODES) {
// update cache
for (Entry<String, NodeDocument> entry : cachedDocs.entrySet()) {
TreeLock lock = acquire(entry.getKey());