protected static String getMimeType(String filename) {
        String fileExtension = filename.replaceAll("^.*\\.(.*)$", "$1");
        return mappings.getOrDefault(fileExtension, "application/octet-stream");
    }
Configures and holds mappings from file extensions to MIME types.
src/main/java/spark/staticfiles/MimeType.java