public function setDefaultRepositoryClassName($className)
    {
        $reflectionClass = new \ReflectionClass($className);

        if (!$reflectionClass->implementsInterface(ObjectRepository::class)) {
            throw new \InvalidArgumentException(sprintf(
                'Invalid repository class "%s". It must be a Doctrine\Common\Persistence\ObjectRepository.',
                $className
            ));
        }

        $this->repositoryClassName = $className;
    }