protected function getErrorHandler() { if ($this->errorHandler === NULL) { $this->errorHandler = $this->getResourceId()->getService(IErrorHandler::NAME); } return $this->errorHandler; }