// replication backend.
private ReplicationServerCfg getReplicationServerCfg()
throws DirectoryException {
RootCfg root = ServerManagementContext.getInstance().getRootConfiguration();
for (String name : root.listSynchronizationProviders()) {
SynchronizationProviderCfg cfg;
try {
cfg = root.getSynchronizationProvider(name);
} catch (ConfigException e) {
throw new DirectoryException(ResultCode.OPERATIONS_ERROR,