protected function chooseBundle(OutputInterface $output)
    {
        $bundles = $this->getContainer()->get('kernel')->getBundles();

        $selectedBundle = $this->getHelperSet()->get('dialog')->ask(
            $output,
            '<info>Which bundle\'s config would you like to convert? </info>',
            null,
            array_keys($bundles)
        );

        if (!isset($bundles[$selectedBundle])) {
            throw UnknownBundleException::create($selectedBundle);
        }

        return $bundles[$selectedBundle];
    }