// The one on the session caches the redirect that occurred during render
// so it can be used in subsequent renders that occur before the action.
context.getExternalContext().getRequestMap().remove(BridgeImpl.REDIRECT_VIEWPARAMS);
context.getExternalContext().getSessionMap().remove(BridgeImpl.RENDER_REDIRECT_VIEWPARAMS);
context.getExternalContext().getSessionMap().remove(BridgeImpl.RENDER_REDIRECT_PRPMAP);
context.release();
}
// our servletrequestattributelistener uses this as an indicator of whether
// its actively working on a request -- remove it to indicate we are done
request.removeAttribute(Bridge.PORTLET_LIFECYCLE_PHASE);