private function loadAop(ContainerBuilder $container, array $config)
{
$bundles = $container->getParameter('kernel.bundles');
if (!array_key_exists('JMSAopBundle', $bundles)) {
throw new \RuntimeException('You need to add the JMSAopBundle if you want to use the AOP feature');
}
foreach ($config['wrappers'] as $wrapper) {
$this->createAopWrapper($container, $wrapper);
}
}