code: public static TSQuery parseQuery(final TSDB tsdb, final HttpQuery query) {
      return parseQuery(tsdb, query, null);
    }
docs: Parses a query string legacy style query from the URI
  @param tsdb The TSDB we belong to
  @param query The HTTP Query for parsing
  @return A TSQuery if parsing was successful
  @throws BadRequestException if parsing was unsuccessful
  @since 2.3