private function loadAppModuleTask($moduleName, $taskName)
    {
        $modules = $this->consoleApp->getModules();
        //checks if indicated module has been registered
        if (!isset($modules[$moduleName])) {
            throw new TaskNotFoundException();
        }

        //creates full namespace for task class placed in application module
        $fullNamespace = strtr('\:moduleName\Tasks\:taskName', array(
            ':moduleName' => $moduleName,
            ':taskName' => $taskName
        ));

        //registers task class in Class Loader
        $this->registerClass($fullNamespace . 'Task');

        //returns converted name of task  (namespace of class containing task)
        return $fullNamespace;
    }