if (_propsKeysSessionEvents.contains(eventName)) {
Class<?> clazz = portletClassLoader.loadClass(eventClassName);
SessionAction sessionAction = (SessionAction)clazz.newInstance();
sessionAction = new InvokerSessionAction(
sessionAction, portletClassLoader);
<BUG>EventsProcessorUtil.registerEvent(eventName, sessionAction);
return sessionAction;
}
return null;</BUG>
}

if (_propsKeysSessionEvents.contains(eventName)) {
Class<?> clazz = portletClassLoader.loadClass(eventClassName);
SessionAction sessionAction = (SessionAction)clazz.newInstance();
sessionAction = new InvokerSessionAction(
sessionAction, portletClassLoader);
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("key", eventName);
ServiceRegistration<LifecycleAction> serviceRegistration =
registry.registerService(
LifecycleAction.class, sessionAction, properties);
serviceRegistrations.put(eventClassName, serviceRegistration);
}
}
