Database db = new Database();
db.setConfig(config);
SecurityManager security = db.getSecurityManager();
if ( !(security instanceof NoSecurityManager) ) {
Filter authFilter = new BasicAuthFilter(security);
Broker.getInstance().addFilter(authFilter);
}
}
catch ( Exception e ) {
e.printStackTrace(System.err);