public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
{
PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
PortletApplication portletApplication = container.getPortletApplication();
ServerContext reqCtx = invocation.getServerContext();
ServletContext targetCtx = portletApplication.getContext().getServletContext();
ServletContainer servletContainer = servletContainerFactory.getServletContainer();
try
{
return (PortletInvocationResponse)reqCtx.dispatch(servletContainer, targetCtx, callback, invocation);
}
catch (Exception e)
{
if (e instanceof PortletInvokerException)
{