public function execute($hydratorType = HydratorFactory::TO_OBJECT)
{
if (is_string($this->operation->getFilter()) || empty($this->operation->getFilter()->getAliases())) {
$results = $this->getResultsFromLdap(clone $this->operation, $hydratorType);
} else {
$results = $this->getResultsForAliases($hydratorType);
}
return $this->sortResults($results);
}