private function getSourcePoolDefinitionByAvailableQuestionPoolId($poolId)
 {
     $availablePools = $this->testOBJ->getAvailableQuestionpools(true, $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired(), false, true, true);
     if (isset($availablePools[$poolId])) {
         $originalPoolData = $availablePools[$poolId];
         $originalPoolData['qpl_path'] = $this->questionSetConfig->getQuestionPoolPathString($poolId);
         return $this->sourcePoolDefinitionFactory->getSourcePoolDefinitionByOriginalPoolData($originalPoolData);
     }
     require_once 'Modules/Test/exceptions/class.ilTestQuestionPoolNotAvailableAsSourcePoolException.php';
     throw new ilTestQuestionPoolNotAvailableAsSourcePoolException();
 }