code: protected boolean matchMimeType(DataUrl dataUrl, MimeType mimeType) {
          MimeType dataUrlMimeType;
          try {
              dataUrlMimeType = MimeType.valueOfMimeType(dataUrl.getMimeType());
          } catch (IllegalArgumentException e) {
              // The MIME-Type is not supported
              return false;
          }
          return mimeType.equals(dataUrlMimeType);
      }
docs: Matches the MIME-Type of the given {@code DataUrl} with the given
  {@link MimeType}.
  
  @param dataUrl The {@link DataUrl} to match.
  @param mimeType The {@link MimeType} to match against.
  @return MIME-Type matches the {@link MimeType}.