public static RouteImpl create(final String path, String acceptType, final Route route) {
        if (acceptType == null) {
            acceptType = DEFAULT_ACCEPT_TYPE;
        }
        return new RouteImpl(path, acceptType, route) {
            @Override
            public Object handle(Request request, Response response) throws Exception {
                return route.handle(request, response);
            }
        };
    }
Wraps the route in RouteImpl

@param path       the path
@param acceptType the accept type
@param route      the route
@return the wrapped route
src/main/java/spark/RouteImpl.java