public MediaType getBaseType() {
    if (parameters.isEmpty()) {
      return this;
    } else {
      return MediaType.parse(string.substring(0, semicolon));
    }
  }
Returns the base form of the MediaType, excluding
 any parameters, such as "text/plain" for
 "text/plain; charset=utf-8"
crawler-commons/src/main/java/achecrawler/crawler/crawlercommons/util/MediaType.java