srcRDN.getAttributeType(0).equals(attrAlias))
{
DN dstDN = trustStoreRootDN.concat(srcRDN);
// Extract any change notification control.
EntryChangeNotificationControl ecn = null;
List<Control> controls = searchEntry.getControls();
try
{
for (Control c : controls)
{
if (c.getOID().equals(OID_ENTRY_CHANGE_NOTIFICATION))
{
if (c instanceof LDAPControl)
{
ecn = EntryChangeNotificationControl.DECODER.decode(c
.isCritical(), ((LDAPControl) c).getValue());
}
else
{
ecn = (EntryChangeNotificationControl)c;
}
}
}
}
catch (DirectoryException e)
{
// ignore
}
// Get any existing local trust store entry.
Entry dstEntry = DirectoryServer.getEntry(dstDN);
if (ecn != null &&
ecn.getChangeType() == PersistentSearchChangeType.DELETE)
{
// The entry was deleted so we should remove it from the local trust
// store.
if (dstEntry != null)
{