protected function _stashEventContext() { $app = \Mage::app(); $events = $this->_getProtectedPropertyFromObject('_events', $app); $this->_eventStash = $events; $this->_setProtectedPropertyFromObjectToValue('_events', $app, array()); }