throw new ActivationException(message, e);
}
try {
notificationManager.registerEventDispatcher(eventDispatcher);
CarbonEventBroker broker;
if (eventSourceName != null) {
broker = (CarbonEventBroker)CarbonEventBroker.getInstance(eventSourceName);
} else {
broker = (CarbonEventBroker)CarbonEventBroker.getInstance();
}
broker.registerSubscriptionManager(subscriptionManager);
broker.registerNotificationManager(notificationManager);
subscriptionManager.init();
if (eventSourceName != null) {
dictionary.put(ATTR_NAME, eventSourceName);
} else {
dictionary.put(ATTR_NAME, DEFAULT_EVENT_SOURCE_NAME);