private function validateHandler(ContainerBuilder $container, $id)
{
/* @var Definition */
$definition = $container->getDefinition($id);
$reflection = new \ReflectionClass($container->getParameterBag()->resolveValue($definition->getClass()));
if (!$reflection->implementsInterface('Sulu\\Component\\HttpCache\\HandlerInterface')) {
throw new \InvalidArgumentException(sprintf('Service ID "%s" was tagged as a cache handler, but it does not implement the "HandlerInterface"', $id));
}
}