code: protected String getQueryFor(final String key) {
          log.trace("Trying to get query for {} ", key);
          String query = queries.get(key);
          log.trace("Query found {} for key {}", query, key);
          if (query == null) {
              log.error("Query for {} key does not exist", key);
              throw new IllegalArgumentException("Query for key " + key + " does not exist");
          } else if (StringUtils.isBlank(query)) {
              log.error("Query for key {} can't be blank or be only whitespace", key);
              throw new IllegalArgumentException("Query for key " + key + " can't be blank or be only whitespace");
          }
          return query.trim().replaceAll("\\s+", " ");
      }
docs: Get the query string for a given key
  
  @param key Key of the query,
  @return Query with the given key. IllegalArgumentException if query does not exist
  @throws java.lang.IllegalArgumentException if q