class FileLocator {

    Optional<FileResult> find(String path, List<String> accept) {
        Optional<FileResult> result = findExactMatch(path);
        if (!result.isPresent()) {
            result = findWithExtension(path, accept);
        }
        return result;
    }

      FileLocator(File rootDir, Map<String, String> mimeByFileExtension);

}