} catch (Exception e) {
throw ConfigException.create(e);
}
}
HempBrokerManager brokerManager = HempBrokerManager.getCurrent();
_bamBroker = new HempBroker(brokerManager, hostName);
if (brokerManager != null)
brokerManager.addBroker(hostName, _bamBroker);
for (String alias : _aliasList) {
_bamBroker.addAlias(alias);
if (brokerManager != null)
brokerManager.addBroker(alias, _bamBroker);
}
InjectManager cdiManager = InjectManager.getCurrent();
cdiManager.addBean(cdiManager.createBeanFactory(ManagedBroker.class)