private Map<String, RouteEntry> getAcceptedMimeTypes(List<RouteEntry> routes) {
        Map<String, RouteEntry> acceptedTypes = new HashMap<>();

        for (RouteEntry routeEntry : routes) {
            if (!acceptedTypes.containsKey(routeEntry.acceptedType)) {
                acceptedTypes.put(routeEntry.acceptedType, routeEntry);
            }
        }

        return acceptedTypes;
    }
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