/**
  * @param Stage               $qa
  * @param FinderConfiguration $configuration
  *
  * @return Stage
  */
 protected function generatePreFilter(Stage $qa, FinderConfiguration $configuration)
 {
     if (null !== $configuration->getSearch()) {
         $filterSearch = $this->generatePreSearchFilter($configuration);
         if (null !== $filterSearch) {
             $qa->match($filterSearch);
         }
     }
     return $qa;
 }