private function getRepository(string $serviceId) : RepositoryInterface { if (false === $this->getContainer()->has($serviceId)) { return $this->getContainer()->get($this->type->getName() . '.repository'); } return $this->getContainer()->get($serviceId); }