public function registry() { if (!isset($this->_registry)) { $this->_registry = new Registry(); } return $this->_registry; }