// then we startup the new.
String fileName = oldMessageStore.getFileName();
messageStore.setFileName(fileName);
messageStore.init(getSynapseEnvironment());
configuration.addMessageStore(messageStore.getName(),messageStore);
MediationPersistenceManager mp = getMediationPersistenceManager();
mp.saveItem(messageStore.getName(),ServiceBusConstants.ITEM_TYPE_MESSAGE_STORE);
} else {
assert false;
String message = "Unexpected Error!!! Message store with name "
+ messageStore.getName() + " does not exist";
handleException(log,message,null);