}</BUG>
List<Element> eventElements = rootElement.elements("event");
for (Element eventElement : eventElements) {
String eventName = eventElement.elementText("event-type");
String eventClassName = eventElement.elementText("event-class");
<BUG>Object obj = initEvent(
eventName, eventClassName, portletClassLoader);

if (obj != null) {
eventsContainer.registerEvent(eventName, obj);
}</BUG>
}

if (modelListener != null) {
modelListenersContainer.registerModelListener(
modelName, modelListener);
}
}
List<Element> eventElements = rootElement.elements("event");
for (Element eventElement : eventElements) {
String eventName = eventElement.elementText("event-type");
String eventClassName = eventElement.elementText("event-class");
initEvent(
eventName, eventClassName, portletClassLoader,
serviceRegistrations);
}
