protected function addResourceModelNodeIfConfirmed(OutputInterface $output, \SimpleXMLElement $configXml)
{
$dialog = $this->getDialog();
if ($dialog->askConfirmation($output, '<question>Would you like to also add a Resource Model(y/n)?</question>', false)) {
$resourceModel = trim($dialog->ask($output, '<question>Resource Model:</question>'));
$configXml->global->models->{$this->getLowercaseModuleNamespace()}->addChild('resourceModel', $resourceModel);
}
}