/** * {@inheritdoc} */ public function getPrototypeByName($prototypeName) { if (!($prototype = $this->repository->getPrototypeByName($prototypeName))) { throw new PrototypeNotFoundException($prototypeName); } return $prototype; }