for (int i = 0; i < this.ldapFiles.length; ++i) {
try {
this.getLog().info("Processing " + this.ldapFiles[i]);
final InputStream inputStream = new FileInputStream(this.ldapFiles[i]);
final DataInputStream dataInputStream = new DataInputStream(inputStream);
final LDIF ldif = new LDIF(dataInputStream);
LDIFRecord record = ldif.nextRecord();
while (record != null) {
this.processRecord(connection, record);
record = ldif.nextRecord();
}
} catch (LDAPException e) {
if (!this.continueOnError) {
throw new MojoExecutionException("Error processing: " + this.ldapFiles[i], e);
} else {