protected function _getUserInput($sText, $bAllowEmpty = false)
    {
        $questionHelper = $this->getHelper('question');

        do {
            $sTitle = "$sText: " . ($bAllowEmpty ? '[optional] ' : '[required] ');
            $question = new Question($sTitle);
            $sInput = $questionHelper->ask($this->input, $this->output, $question);
        } while (!$bAllowEmpty && !$sInput);

        return $sInput;
    }