// Cleanup request attributes.
PortletRequest portletRequest = bridgeContext.getPortletRequest();
if (portletRequest != null) {
portletRequest.removeAttribute(BridgeExt.BRIDGE_CONTEXT_ATTRIBUTE);
portletRequest.removeAttribute(Bridge.PORTLET_LIFECYCLE_PHASE);
// Restore the cached attributes.
portletRequest.setAttribute(BridgeConstants.REQ_ATTR_PATH_INFO, pathInfo);
portletRequest.setAttribute(BridgeConstants.REQ_ATTR_SERVLET_PATH, servletPath);