/**
  * 
  * Gets the test case instance data key
  * First by name and if name don't exists then by the test case inputs
  * @param KalturaTestCaseDataFile $newTestDataFile
  * @param KalturaTestCaseInstanceFailure $testCaseInstanceFailure
  */
 protected static function getTestCaseInstnaceKey(KalturaTestCaseDataFile $newTestDataFile, KalturaTestCaseInstanceFailure $testCaseInstanceFailure)
 {
     $testCaseInstanceKey = $testCaseInstanceFailure->getTestCaseInstanceName();
     //Check if key exists in the data file
     if (!$newTestDataFile->isTestCaseInstanceExists($testCaseInstanceKey)) {
         //If name doesn't exists we find the right input
         //TODO: maybe remove getTestKeyByInputs
         $testCaseInstanceKey = KalturaTestResultUpdater::getTestKeyByInputs($newTestDataFile, $testCaseInstanceFailure->getTestCaseInput());
     }
     return $testCaseInstanceKey;
 }