protected function registerHyperVisor(IOpenStackImplementation $implementation, $hypervisor_type_id) { $hypervisor = $this->hypervisor_type_repository->getById($hypervisor_type_id); if (!$hypervisor) { throw new NotFoundEntityException('', ''); } $implementation->addHyperVisor($hypervisor); }