docs: private RouteEntry findTargetWithGivenAcceptType(List<RouteEntry> routeMatches, String acceptType) {
          if (acceptType != null && routeMatches.size() > 0) {
              Map<String, RouteEntry> acceptedMimeTypes = getAcceptedMimeTypes(routeMatches);
              String bestMatch = MimeParse.bestMatch(acceptedMimeTypes.keySet(), acceptType);
  
              if (routeWithGivenAcceptType(bestMatch)) {
                  return acceptedMimeTypes.get(bestMatch);
              } else {
                  return null;
              }
          } else {
              if (routeMatches.size() > 0) {
                  return routeMatches.get(0);
              }
          }
  
          return null;
      }