DirectoryServer.getSynchronizationProviders();
for (SynchronizationProvider<?> provider : DirectoryServer
.getSynchronizationProviders()) {
if (provider instanceof MultimasterReplication) {
MultimasterReplication mmp = (MultimasterReplication) provider;
ReplicationServerListener list = mmp.getReplicationServerListener();
if (list != null) {
replicationServer = list.getReplicationServer();
if (replicationServer != null) {
break;
}