}
Set<String> errorBatches = Sets.create();
boolean succeeded = true;
try {
ResourceRepository scanner = getScanner(new File(scanPath));
Cursor cursor = scanner.createCursor();
try {
while (cursor.next()) {
Location location = cursor.getLocation();
Class<? extends BatchDescription> batchDescription = getBatchDescription(location);
if (batchDescription == null) {