class StaticFileServer implements StaticFileHandler {

    @Override
    public boolean isStaticResourceRequest(HttpServletRequest request) {
        URL resource;

        String requestFilename = getRequestFilename(request);
        if (requestFilename.endsWith("/")) {
            // Directories are not static resources although
            // servletContext.getResource will return a URL for them, at
            // least with Jetty
            return false;
        }

        if (requestFilename.startsWith("/" + VAADIN_STATIC_FILES_PATH)
                || requestFilename.startsWith("/" + VAADIN_BUILD_FILES_PATH)) {
            // The path is reserved for internal resources only
            // We rather serve 404 than let it fall through
            return true;
        }
        resource = servletService.getStaticResource(requestFilename);

        if (resource == null && shouldFixIncorrectWebjarPaths()
                && isIncorrectWebjarPath(requestFilename)) {
            // Flow issue #4601
            return true;
        }

        return resource != null;
    }

    public  StaticFileServer(VaadinServletService servletService);

}