public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
{
PortletContainerImpl container = (PortletContainerImpl)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
//
Valve valve = container.getValve();
if (valve.beforeInvocation())
{
PortletInvocationResponse response;
try
{
response = super.invoke(invocation);
}
finally
{
// Release the valve
valve.afterInvocation();
}
// Stop the container if necessary
if (response instanceof UnavailableResponse)
{