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