/**
  * Run the console
  *
  * @param  array $args command line arguments
  * @return void
  */
 protected function _run($args)
 {
     $taskClass = $this->_getTaskClassFromArgs($args[1]);
     if (!class_exists($taskClass)) {
         throw new MageUC_Console_Exception('Unknown task : ' . $taskClass . PHP_EOL);
     }
     unset($args[0]);
     unset($args[1]);
     $this->_taskInstance = new $taskClass();
     $this->_taskInstance->setArguments($this->prepareArgs($args));
     if ($this->_taskInstance->validate()) {
         ob_start();
         $this->_taskInstance->execute();
         ob_flush();
     } else {
         throw new MageUC_Console_Exception('Invalide arguments for task : ' . $taskClass . PHP_EOL);
     }
 }