// Check if we already have a federating portlet invoker
final ExoContainer topContainer = ExoContainerContext.getTopContainer();
FederatingPortletInvoker federatingPortletInvoker = (FederatingPortletInvoker) topContainer
.getComponentInstanceOfType(FederatingPortletInvoker.class);
if (federatingPortletInvoker == null) {
federatingPortletInvoker = new FederatingPortletInvokerService();
topContainer.registerComponentInstance(FederatingPortletInvoker.class, federatingPortletInvoker);
}
EventPayloadInterceptor eventPayloadInterceptor = new EventPayloadInterceptor();
eventPayloadInterceptor.setNext(portletContainerDispatcher);