public function mapperFor($subject) { $class = $this->initialize($subject); if (!isset($this->_mappers[$class])) { throw new Exception("No mapper registered for {$class}"); } return $this->_mappers[$class]; }