/**
  * This is called whenever the notification service is called. We have to store all interesting
  * results in an internal structure to use it later.
  *
  * @param string $event
  * @param tx_caretaker_AbstractNode $node
  * @param tx_caretaker_TestResult $result
  * @param tx_caretaKer_TestResult $lastResult
  */
 public function addNotification($event, $node, $result = NULL, $lastResult = NULL)
 {
     $strategies = $node->getStrategies();
     foreach ($strategies as $strategy) {
         $config = $this->getStrategyConfig($strategy);
         $this->processStrategy($strategy, $config, array('event' => $event, 'node' => $node, 'result' => $result, 'lastResult' => $lastResult));
         if ($config['stop']) {
             break;
         }
     }
 }