protected function execute(InputInterface $input, OutputInterface $output)
    {
        $templateName = $input->getArgument('template');
        $templates = $this->configurationManager->get('store.templates');
        $templateFound = array_reduce(
            $templates,
            function ($alreadyFound, $template) use ($templateName) {
                return $alreadyFound || ($template['bundle'] == $templateName);
            },
            false);

        if (!$templateFound) {
            throw new Exception(sprintf('Template %s not found', $templateName));
        }

        $this
            ->configurationManager
            ->set('store.template', $templateName);

        $formatter = $this->getHelper('formatter');
        $formattedLine = $formatter->formatSection(
            'OK',
            'Template "' . $templateName . '" enabled'
        );

        $output->writeln($formattedLine);
    }