private function definition(ContainerBuilder $container, $class, $tag, array $arguments = [])
    {
        $definition = new Definition(strtr(__NAMESPACE__, ['ServiceContainer' => $class]), $arguments);

        return $container
            ->setDefinition($tag . '.' . self::id($class), $definition)
            ->addTag($tag);
    }