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
{
instance.initialise(instanceID);
}
catch (Exception e)
{
_instanceMap.remove(instanceID);
try
{
system.removeBroker(broker);
}
finally
{
throw e;
}