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);
docList.add(doc);
}
}
return new NodeSequence<DTMDocument>(docList, DynamicContext.DUMMY);
}