private function generateActions(array $actions, $parentId, Definition $parent, ContainerBuilder $container)
    {
        foreach ($actions as $actionName => $action) {
            $actionId = $parentId.'.'.$actionName;

            $actionDefinition = $this->createComponentDefinition($actionName, $action['class'], $action['options']);
            $actionDefinition->addMethodCall('setGroup', array(new Reference($parentId)));

            $container->setDefinition($actionId, $actionDefinition);

            $parent->addMethodCall('addAction', array(new Reference($actionId)));
        }
    }