//
Serializable dstPayload = null;
if (srcPayload != null)
{
PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
//
PortletApplication application = container.getPortletApplication();
PortletApplicationContext applicationContext = application.getContext();
ClassLoader applicationClassLoader = applicationContext.getClassLoader();
String srcPayloadClassName = srcPayload.getClass().getName();
boolean trace = log.isTraceEnabled();
QName eventName = eventInvocation.getName();
String containerId = container.getId();
String applicationId = application.getId();
//
PortletInfo info = container.getInfo();
EventingInfo eventingInfo = info.getEventing();
Map<QName, ? extends EventInfo> consumedEventInfos = eventingInfo.getConsumedEvents();
EventInfo eventInfo = consumedEventInfos.get(eventName);
//
if (trace)
{
log.trace("Attempt to obtain for event " + eventName + " its payload class " + srcPayloadClassName + " in the application " + applicationId +
" for portlet " + container.getInfo());
}
//
Class dstPayloadClass = null;
if (eventInfo != null)