/**
  * Enter description here...
  *
  * @return __EventHandlerFactory
  */
 public static function &getInstance()
 {
     if (self::$_instance == null) {
         self::$_instance = new __EventHandlerFactory();
     }
     return self::$_instance;
 }
 /**
  * Returns the event handler associated to a given view.
  *
  * @param string $view_code Case insensitive view code that identifies the view
  * @return __IEventHandler The requested event handler
  */
 public function &getEventHandler($view_code)
 {
     $view_code = strtoupper($view_code);
     if (!key_exists($view_code, $this->_event_handlers)) {
         $return_value = __EventHandlerFactory::getInstance()->createEventHandler($view_code);
         $this->addEventHandler($return_value);
     } else {
         $return_value =& $this->_event_handlers[$view_code];
     }
     return $return_value;
 }