/**
  * @return tx_caretaker_TestServiceInterface
  */
 public function getTestService()
 {
     if ($this->testService === NULL) {
         if ($this->testServiceType) {
             $info = t3lib_extMgm::findService('caretaker_test_service', $this->testServiceType);
             if ($info && $info['classFile']) {
                 $requireFile = t3lib_div::getFileAbsFileName($info['classFile']);
                 if (@is_file($requireFile)) {
                     t3lib_div::requireOnce($requireFile);
                     $this->testService = t3lib_div::makeInstance($info['className']);
                     if ($this->testService) {
                         $this->testService->setInstance($this->getInstance());
                         $this->testService->setConfiguration($this->testServiceConfiguration);
                     } else {
                         throw new Exception('testservice class ' . $info['className'] . ' could not be instantiated');
                     }
                 } else {
                     throw new Exception('testservice ' . $this->testServiceType . ' class file ' . $requireFile . ' not found');
                 }
             } else {
                 throw new Exception('caretaker testservice ' . $this->testServiceType . ' not found');
             }
         }
     }
     return $this->testService;
 }
 /**
  * @return tx_caretaker_TestServiceInterface
  * @throws Exception
  */
 public function getTestService()
 {
     if ($this->testService === NULL) {
         if ($this->testServiceType) {
             $info = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::findService('caretaker_test_service', $this->testServiceType);
             if ($info && $info['className']) {
                 if (class_exists($info['className'])) {
                     $this->testService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($info['className']);
                     if ($this->testService) {
                         $this->testService->setInstance($this->getInstance());
                         $this->testService->setConfiguration($this->testServiceConfiguration);
                     } else {
                         throw new Exception('testservice class ' . $info['className'] . ' could not be instantiated');
                     }
                 } else {
                     throw new Exception('testservice ' . $this->testServiceType . ' class ' . $info['className'] . ' not found');
                 }
             } else {
                 throw new Exception('caretaker testservice ' . $this->testServiceType . ' not found');
             }
         }
     }
     return $this->testService;
 }