code: protected Event finalizeResponseEvent(final RequestContext requestContext, final WebApplicationService service, final Response response) {
          WebUtils.putServiceResponseIntoRequestScope(requestContext, response);
          WebUtils.putServiceOriginalUrlIntoRequestScope(requestContext, service);
          val eventId = getFinalResponseEventId(service, response, requestContext);
          return new EventFactorySupport().event(this, eventId);
      }
docs: Finalize response event event.
  
  @param requestContext the request context
  @param service        the service
  @param response       the response
  @return the event