// No domain in replication
return null;
}
// Find the configuration for domain the entry is part of
ReplicationDomainCfg matchingReplicatedDomainCfg = null;
for (String domainName : domainNames)
{
// Get the domain configuration object
ReplicationDomainCfg replicationDomainCfg =
sync.getReplicationDomain(domainName);
// Is the entry a sub entry of the replicated domain main entry ?
DN replicatedDn = replicationDomainCfg.getBaseDN();
DN entryDn = entry.getDN();
if (entryDn.isDescendantOf(replicatedDn))
{
// Found the matching replicated domain configuration object
matchingReplicatedDomainCfg = replicationDomainCfg;