public function getOutputService() { if ($this->_outputService === null) { $this->_outputService = $this->getResourceId()->getService(IOutputService::NAME); } return $this->_outputService; }