int size = lfd.size();
for (int i = 0 ; i < loop ; i++) {
File file = lfd.get(i%size);
long startLTime = System.currentTimeMillis();
ValidationResult result = validator.validate(new FileDataSource(file));
if (!result.isValid()) {
resFile.write(file.getAbsolutePath() + " isn't PDF/A\n");
for (ValidationError error : result.getErrorsList()) {
resFile.write(error.getErrorCode() + " : " + error.getDetails() +"\n");
}