// iterate over the container stack so that we can insert the WSRP-specific event payload interceptor
PortletInvokerInterceptor previous = containerPortletInvoker;
PortletInvokerInterceptor next = previous;
do {
PortletInvoker invoker = previous.getNext();
if (invoker instanceof EventPayloadInterceptor) {
// create a new WSRPEventPayloadInterceptor and make its next one the current event payload invoker
WSRPEventPayloadInterceptor eventPayloadInterceptor = new WSRPEventPayloadInterceptor();
eventPayloadInterceptor.setNext(invoker);