private function getApplication() { $command = $this->getHelperSet()->getCommand(); if ($command) { $application = $command->getApplication(); } else { $application = new Application(); } return $application; }