protected function getOneOrNullResultFromQueryBuilder(QueryBuilder $queryBuilder)
    {
        $query = $queryBuilder->getQuery();

        $result = $query->getOneOrNullResult();

        return $result;
    }