Working around javax.activation.MimeType not overriding equals(...)