public static MIME getMime(String extension) {
        if (extension == null)
            return DEFAULT;
        for (MIME mime : MIME.values())
            if (mime.extensions.contains(extension.toLowerCase()))
                return mime;
        return DEFAULT;
    }