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;
    }
Removes a particular route from the collection of those that have been previously routed.
Search for a previously established routes using the given path and removes any matches that are found.

@param path the route path
@return <tt>true</tt> if this a matching route has been previously routed
@throws java.lang.IllegalArgumentException if <tt>path</tt> is null or blank
@since 2.2
src/main/java/spark/route/Routes.java