private function findTasks()
    {
        if ($this->init)
            return;

        $resolver = $this->app->moduleManager;
        $modules = $resolver->getModules();
        foreach ($modules as $mod)
            $mod->registerTasks($this);

        // Provide a way to register tasks using a hook
        Hook::execute("Wedeto.Application.Task.TaskRunner.findTasks", ['taskrunner' => $this]);
        $this->init = true;
    }