@Override
  protected void cleanup(PortletRequest portletRequest) {

    // If required, cause the BridgeRequestScope to go out-of-scope.
    if (!bridgeRequestScopePreserved) {
      bridgeRequestScopeCache.remove(bridgeRequestScope.getId());
    }

    super.cleanup(portletRequest);
  }
  @Override
  protected void cleanup() {

    // If required, cause the BridgeRequestScope to go out-of-scope.
    if ((bridgeContext != null) && !bridgeContext.isBridgeRequestScopePreserved()) {
      bridgeRequestScopeCache.remove(bridgeRequestScope.getId());
    }

    super.cleanup();
  }