docs: private static ParseResults parseMimeType(String mimeType) {
          String[] parts = mimeType.split(";");
          ParseResults results = new ParseResults();
          results.params = new HashMap<>();
  
          for (int i = 1; i < parts.length; ++i) {
              String p = parts[i];
              String[] subParts = p.split("=");
              if (subParts.length == 2) {
                  results.params.put(subParts[0].trim(), subParts[1].trim());
              }
          }
          String fullType = parts[0].trim();
  
          // Java URLConnection class sends an Accept header that includes a
          // single "*" - Turn it into a legal wildcard.
          if (fullType.equals("*")) {
              fullType = "*/*";
          }
  
          int slashIndex = fullType.indexOf('/');
          if (slashIndex != -1) {
              results.type = fullType.substring(0, slashIndex);
              results.subType = fullType.substring(slashIndex + 1);
          } else {
              //If the type is invalid, attempt to turn into a wildcard
              results.type = fullType;
              results.subType = "*";
          }
  
          return results;
      }