tm.setBatchHint(25);
DocumentList docList = tm.startTraversal();
assertNotNull("startTraversal returned a null document list", docList);
Document doc;
while (null != (doc = docList.nextDocument())) {
String docId = doc.findProperty(SpiConstants.PROPNAME_DOCID).
nextValue().toString();
if (docId.contains(("/$File/"))) {
assertNotNull("Missing attachment filename " + docId,
doc.findProperty(NCCONST.PROPNAME_NCATTACHMENTFILENAME));
} else {