public void setInvocationState(Action action, PortletRequestContext portletRequestContext, PortletResponseContext portletResponseContext, PortletRequest portletRequest, PortletResponse portletResponse, PortletInstance portletInstance) { if (!valid) { throw new IllegalStateException("Invalid window "+getId()+" should not have been invoked"); } this.action = action; this.portletRequest = portletRequest; this.portletResponseContext = portletResponseContext; this.portletRequestContext = portletRequestContext; this.portletResponse = portletResponse; this.portletInstance = portletInstance; }