protected function getCurrentContext() { if (count($this->eventContext) > 0) { return end($this->eventContext); } else { return null; } }