/**
  * Return a QueryTerm object from the list.
  *
  * @param QueryTerm|string $query_term QueryTerm object or term string.
  * @return QueryTerm|null Matching QueryTerm object, or null if none found.
  */
 public function getQueryTerm($query_term)
 {
     if (is_string($query_term)) {
         $query_term = QueryTerm::fromString($query_term, $this->_user_sph_map);
     }
     if ($query_term instanceof QueryTerm) {
         $hash = $query_term->toHash();
         if (isset($this->_qts[$hash])) {
             return $this->_qts[$hash];
         }
     }
     return null;
 }