public function loadQueues(ContainerBuilder $container, array $config)
    {
        foreach ($config as $name => $attributes) {
            $container
                ->setDefinition(
                    self::getQueueServiceKey($name),
                    new Definition(
                        $container->getParameter('llssqs.model.queue.class'),
                        array(
                            new Reference(
                                LLSAWSExtension::getServiceServiceKey($attributes['service'])
                            ),
                            new Reference('llssqs.model.message.factory'),
                            $attributes['name']
                        )
                    )
                );
        }

        return $this;
    }