protected BrokerContainer createContainer() throws Exception {
BrokerContainerImpl answer = new BrokerContainerImpl(brokerName, context);
answer.setPersistenceAdapter( persistenceAdapter );
if( jaasConfiguration != null ) {
answer.setSecurityAdapter(new JassJaccSecurityAdapter(jaasConfiguration));
}
if( securityRoles != null ) {
// Install JACC configuration.
PropertiesConfigLoader loader = new PropertiesConfigLoader(brokerName, securityRoles);
loader.installSecurity();