code: private static ParseResults parseMediaRange(String range) {
          ParseResults results = parseMimeType(range);
          String q = results.params.get("q");
          float f = toFloat(q, 1);
          if (isBlank(q) || f < 0 || f > 1) {
              results.params.put("q", "1");
          }
          return results;
      }
docs: Carves up a media range and returns a ParseResults.
  For example, the media range 'application/*;q=0.5' would get parsed into:
  ('application', '*', {'q', '0.5'})
  In addition this function also guarantees that there is a value for 'q'
  in the params dictionary, filling it in with a proper default if
  necessary.
  
  @param range