throws DeploymentSynchronizerException {
int tenantId = MultitenantUtils.getTenantId(getConfigContext());
try {
CarbonRepositoryUtils.persistConfiguration(config, tenantId);
DeploymentSynchronizer synchronizer = CarbonRepositoryUtils.
newCarbonRepositorySynchronizer(tenantId);
if (synchronizer != null) {
synchronizer.start();
} else {
String msg = "Unable to create a deployment synchronizer instance";
log.warn(msg);
throw new DeploymentSynchronizerException(msg);
}