if (newWindowStateName != null) {
pap.changePortletWindowState(new WindowState(newWindowStateName));
}
HttpServletRequest wrappedPortletRequest = new PortletParameterRequestWrapper(wrappedRequest);
portletContainer.processPortletAction(portletWindow, wrappedPortletRequest, wrappedResponse);
<BUG>InternalActionResponse actionResponse = (InternalActionResponse)PortletObjectAccess.getActionResponse(cd.getPortletWindow(), pcs.getHttpServletRequest(), pcs.getHttpServletResponse());
cd.setProcessedAction(true);</BUG>
} catch (Exception e) {
throw new PortalException(e);
}

if (newWindowStateName != null) {
pap.changePortletWindowState(new WindowState(newWindowStateName));
}
HttpServletRequest wrappedPortletRequest = new PortletParameterRequestWrapper(wrappedRequest);
portletContainer.processPortletAction(portletWindow, wrappedPortletRequest, wrappedResponse);
} catch (Exception e) {
throw new PortalException(e);
