docs: static void modify(HttpServletRequest httpRequest,
                         HttpServletResponse httpResponse,
                         Body body,
                         RequestWrapper requestWrapper,
                         ResponseWrapper responseWrapper,
                         ExceptionMapper exceptionMapper,
                         Exception e) {
  
          ExceptionHandlerImpl handler = exceptionMapper.getHandler(e);
  
          if (handler != null) {
              handler.handle(e, requestWrapper, responseWrapper);
              String bodyAfterFilter = responseWrapper.getDelegate().body();
  
              if (bodyAfterFilter != null) {
                  body.set(bodyAfterFilter);
              }
          } else {
              LOG.error("", e);
  
              httpResponse.setStatus(500);
  
              if (CustomErrorPages.existsFor(500)) {
                  requestWrapper.setDelegate(RequestResponseFactory.create(httpRequest));
                  responseWrapper.setDelegate(RequestResponseFactory.create(httpResponse));
                  body.set(CustomErrorPages.getFor(500, requestWrapper, responseWrapper));
              } else {
                  body.set(CustomErrorPages.INTERNAL_ERROR);
              }
          }
      }