if (null != redirectViewId) {
PortletBridgeContext bridgeContext = PortletBridgeContext
.getCurrentInstance(context);
PortletRequest request = (PortletRequest) context
.getExternalContext().getRequest();
bridgeContext.resetRequestAttributes(request);
windowState.restoreBeans(context);
renderErrorPage(context, windowState, e, redirectViewId);
} else {
throw new BridgeException("Error processing render lifecycle", e);
}