public synchronized int initialize() {
try {
Database db = new Database();
db.setConfig(config);
SecurityManager security = db.getSecurityManager();
if ( !(security instanceof NoSecurityManager) ) {
Filter authFilter = new BasicAuthFilter(security);
Broker.getInstance().addFilter(authFilter);
}