code: @SuppressWarnings("WeakerAccess")
  	public static boolean isMimeType(@Nonnull final MimePart part, @Nonnull final String mimeType) {
  		// Do not use part.isMimeType(String) as it is broken for MimeBodyPart
  		// and does not really check the actual content type.
  
  		try {
  			final ContentType contentType = new ContentType(retrieveDataHandler(part).getContentType());
  			return contentType.match(mimeType);
  		} catch (final ParseException ex) {
  			return retrieveContentType(part).equalsIgnoreCase(mimeType);
  		}
  	}
docs: Checks whether the MimePart contains an object of the given mime type.
  
  @param part     the current MimePart
  @param mimeType the mime type to check
  @return {@code true} if the MimePart matches the given mime type, {@code false} otherwise