protected boolean nextFile() throws IOException {
   LOG.debug("In next file");
   if (!setIterator()) {
     LOG.info("could not set iterator for currentfile");
     return false;
   }
   Path nextFile = fileMap.getNext();
   if (nextFile != null) {
     currentFile = nextFile;
     openCurrentFile(true);
     return true;
   }
   return false;
 }