public RouteMatch find(HttpMethod httpMethod, String path, String acceptType) {
        List<RouteEntry> routeEntries = this.findTargetsForRequestedRoute(httpMethod, path);
        RouteEntry entry = findTargetWithGivenAcceptType(routeEntries, acceptType);
        return entry != null ? new RouteMatch(entry.target, entry.path, path, acceptType, httpMethod) : null;
    }
finds target for a requested route

@param httpMethod the http method
@param path       the path
@param acceptType the accept type
@return the target
src/main/java/spark/route/Routes.java