protected function executeCommand(BaseCommand $command, InputInterface $input, OutputInterface $output)
    {
        try {
            if (0 !== ($statusCode = $command->run($input, $output))) {
                throw new \RuntimeException('Error: command exit code was ' . $statusCode);
            }
        } catch (\Exception $exception) {
            throw new \RuntimeException($exception->getMessage(), $exception->getCode(), $exception);
        }
    }