try {
// we register our own shutdown hook
BrokerPool.setRegisterShutdownHook(false);
// configure the database instance
SingleInstanceConfiguration config;
if (args.length == 2) {
config = new SingleInstanceConfiguration(args[1]);
} else {
config = new SingleInstanceConfiguration();
}
if (observer != null){
BrokerPool.registerStatusObserver(observer);
}