class HTTP {

    public static Optional<String> getContentTypeFromExtension(String filename) {
        String ext = filename.substring(filename.lastIndexOf('.') + 1);

        return Optional.fromNullable(mimeTypes.getProperty(ext));
    }

}