class MimeTypes {

    public static List<AcceptMIMEType> parseAcceptMIMETypes(String accept) {
        return Optional.ofNullable(accept)
                       .filter(StringUtils::hasText)
                       .map(a -> StringUtils.split(a, ','))
                       .map(Arrays::stream)
                       .map(MimeTypes::apply)
                       .orElse(Collections.emptyList());
    }

    public  MimeTypes();

}