private function applyCriteriaToQuery(Criteria $criteria, Query $query, $prefix = '')
    {
        if (!count($criteria)) {
            return;
        }

        $query->setPostFilter($this->createFilterFromCriteria($criteria));
    }