docs: @Override
      public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
                      ServletException {
          HttpServletRequest httpServletRequest = (HttpServletRequest) request;
  
          for (String path : mediaTypes.keySet()) {
              if (matches(httpServletRequest, path)) {
                  response.setContentType(mediaTypes.get(path));
                  break;
              }
          }
          chain.doFilter(request, response);
      }