}
}
}
SPProgressBarPlug.incrementBar();
if (bad) {
throw new BadRecord("Duplicate EDIDs or FormIDs. Check logs for a listing.");
}
SPProgressBarPlug.setStatusNumbered("Validating Record Lengths");
// Validate all record lengths are correct
if (!NiftyFunc.validateRecordLengths(outPath, 1)) {
SPGlobal.logError("Record Length Check", "Record lengths were off.");
throw new BadRecord("Record lengths are off.");
}
SPProgressBarPlug.incrementBar();
SPProgressBarPlug.setStatusNumbered("Exporting Consistency File");
if (Consistency.automaticExport) {