private function configureMetadataDriver(array $config, ContainerBuilder $container)
    {
        $container->register('doctrine.key_value.metadata.annotation.reader', 'Doctrine\Common\Annotations\AnnotationReader')
            ->setPublic(false);

        $container->register('doctrine.key_value.metadata.annotation', 'Doctrine\KeyValueStore\Mapping\AnnotationDriver')
            ->setPublic(false)
            ->addArgument(new Reference('doctrine.key_value.metadata.annotation.reader'));
    }