else
{
Writer writer = new Writer();
LDIFWriter ldifWriter2 = writer.getLDIFWriter();
ldifWriter2.writeChangeRecord(changeRecord);
LDIFReader reader = writer.getLDIFReader();
entry = reader.readEntry();
}
}
else if (msg instanceof ModifyMsg)
{
ModifyOperation op = (ModifyOperation)msg.createOperation(conn);
dn = DN.decode("uuid=" + msg.getUniqueId() + "," +
CHANGE_NUMBER + "=" + msg.getChangeNumber().toString()+ "," +
msg.getDn() +","+ BASE_DN);
op.setInternalOperation(true);
ModifyChangeRecordEntry changeRecord =
new ModifyChangeRecordEntry(dn, op.getRawModifications());
if (exportConfig != null)
{
ldifWriter.writeChangeRecord(changeRecord);
}
else
{
Writer writer = new Writer();
LDIFWriter ldifWriter2 = writer.getLDIFWriter();
ldifWriter2.writeChangeRecord(changeRecord);
LDIFReader reader = writer.getLDIFReader();
entry = reader.readEntry();
}
}
else if (msg instanceof ModifyDNMsg)
{
ModifyDNOperation op = (ModifyDNOperation)msg.createOperation(conn);
dn = DN.decode("uuid=" + msg.getUniqueId() + "," +
CHANGE_NUMBER + "=" + msg.getChangeNumber().toString()+ "," +
msg.getDn() +","+ BASE_DN);
op.setInternalOperation(true);
ModifyDNChangeRecordEntry changeRecord =
new ModifyDNChangeRecordEntry(dn, op.getNewRDN(), op.deleteOldRDN(),
op.getNewSuperior());
if (exportConfig != null)
{
ldifWriter.writeChangeRecord(changeRecord);
}
else
{
Writer writer = new Writer();
LDIFWriter ldifWriter2 = writer.getLDIFWriter();
ldifWriter2.writeChangeRecord(changeRecord);
LDIFReader reader = writer.getLDIFReader();
Entry modDNEntry = reader.readEntry();
entry = modDNEntry;
}
}
if (exportConfig != null)