if (instance != null)
{
_logger.info("Initialising Application Registry(" + instance + "):" + instanceID);
_instanceMap.put(instanceID, instance);
final ConfigStore store = ConfigStore.newInstance();
store.setRoot(new SystemConfigImpl(store));
instance.setConfigStore(store);
BrokerConfig broker = new BrokerConfigAdapter(instance);
SystemConfig system = (SystemConfig) store.getRoot();
system.addBroker(broker);
instance.setBroker(broker);
try
{