public function getQuestionnaireDetails($userSessionId)
    {
        $questionnaire = $this->createQueryBuilder('us')
            ->select('us, c, a')
            ->leftJoin('us.configuration', 'c')
            ->leftJoin('s.answers', 'a')
            ->where('us.id = :id')
            ->setParameter('id', $userSessionId)
            ->getQuery()
            ->getOneOrNullResult();

        return $questionnaire;
    }