class MimeUtil {

    private static final Properties mimes = new Properties();

    static {
        try (InputStream in = MimeUtil.class.getClassLoader().getResourceAsStream("mime.properties")) {
            mimes.load(in);
        } catch (IOException e) {
            log.warn("mime file load error", e);
        }
    }

    public static String getMimeType(String fileName) {<FILL_FUNCTION_BODY>}

}

        String[] nameSplits = fileName.split("\\.");
        String type = mimes.getProperty(nameSplits[nameSplits.length - 1]);
        if (StringUtils.isBlank(type)) {
            type = MediaType.APPLICATION_OCTET_STREAM_VALUE;
        }
        return type;
    
<no_super_class>