public function objectiveCompetencyResourceFetchAction(Competency $competency, $level, User $user)
    {
        $rootComptency = empty($competency->getParent()) ?
            $competency :
            $this->competencyManager->getCompetencyById($competency->getRoot());
        $scale = $rootComptency->getScale();
        $levelEntity = $this->competencyManager->getLevelByScaleAndValue($scale, $level);
        $resource = $this->objectiveManager->getRelevantResourceForUserByLevel($user, $competency, $levelEntity);
        $data = is_null($resource) ? null : ['resourceId' => $resource->getId()];

        return new JsonResponse($data);
    }