context.invokeNext( service );
}
private ConvertableEvent getEvent(PortalService service, String factoryName, String eventData) {
ServiceSelector selector = null;
ConvertableEventFactory factory = null;
ConvertableEvent event;
try {
selector = (ServiceSelector) this.manager.lookup(ConvertableEventFactory.ROLE + "Selector");
factory = (ConvertableEventFactory) selector.select(factoryName);
event = factory.createEvent(service, eventData);
} catch (ServiceException ce) {
if (getLogger().isErrorEnabled()) {
getLogger().error("Unable to create event for " + factoryName +
" using " + eventData);
}