final List<Pair<String, Lock>> fileResources = e.getValue();
DbCollection col = DbCollection.getCollection(colpath);
File colDir = col.getDirectory();
if(!colDir.exists()) {
throw new GridException("Collection not found: " + colpath);
}
for(Pair<String, Lock> rsc : fileResources) {
String fname = rsc.getFirst();
File docFile = new File(colDir, fname + IDocumentTable.DTM_SEGMENT_FILE_SUFFIX);
if(!docFile.exists()) {
throw new GridException("Document not found: " + docFile.getAbsolutePath());
}
LazyDTMDocument doc = new LazyDTMDocument(fname, col, DynamicContext.DUMMY);
Lock lock = rsc.getSecond();
assert (lock != null);
doc.setLock(lock);