docs: private static boolean isAppXml(final String mime) {
          return mime != null
                  && (mime.equals("application/xml") || mime.equals("application/xml-dtd") || mime.equals("application/xml-external-parsed-entity") || mime
                          .startsWith("application/") && mime.endsWith("+xml"));
      }