code: public static boolean matchProduces(InternalRoute route, InternalRequest<?> request) {
          if (nonEmpty(request.getAccept())) {
              List<MediaType> matchedAcceptTypes = getAcceptedMediaTypes(route.getProduces(), request.getAccept());
  
              if (nonEmpty(matchedAcceptTypes)) {
                  request.setMatchedAccept(matchedAcceptTypes.get(0));
                  return true;
              }
          }
  
          return false;
      }
docs: Matches route produces configurer and Accept-header in an incoming provider
  
  @param route   route configurer
  @param request incoming provider object
  @return returns {@code true} if the given route has produces Media-Type one of an Accept from an incoming provider