public ReplicationManager(BabuDBInternal dbs, ReplicationConfig conf) throws Exception {
TimeSync.initializeLocal(conf.getTimeSyncInterval(),
conf.getLocalTimeRenew()).setLifeCycleListener(this);
transmissionLayer = new TransmissionLayer(conf);
serviceLayer = new ServiceLayer(conf, new BabuDBInterface(dbs), transmissionLayer);
controlLayer = new ControlLayer(serviceLayer, conf);
serviceLayer.init(controlLayer);
transmissionLayer.setLifeCycleListener(this);