// ensure the Replication DialogFragmentManager service is initialized and started.
DialogFragmentManager dfm = DialogFragmentManager.getInstance();
try {
if (dfm instanceof ReplicationDialogFragmentManager) {
ReplicationDialogFragmentManager rdfm = (ReplicationDialogFragmentManager) dfm;
ReplicaCache replicaCache = new ReplicaCache(mgr);
rdfm.setReplicaCache(replicaCache);
setDuplicateIdsSemanticsAllowedForDialogs(rdfm);
rdfm.initializeReplication(passedInPersistenceType, haStorePoolSize, haStorePoolUpperSize, haStorePoolPollTime);
rdfm.startReplication();
}
} catch (IllegalStateException isex) {
LogUtil.SSR_LOGGER.getLogger().log(Level.SEVERE, "df_manager_startup_error");
LogUtil.SSR_LOGGER.getLogger().log(Level.SEVERE, isex.getMessage(), isex);
}