protected function registerModule($name, \OtherCode\FController\Modules\BaseModule $module)
    {
        $name = strtolower($name);

        if (!array_key_exists($name, $this->modules)) {
            $module->connect($this->services, $this->storage, $this->messages);
            $this->modules[$name] = $module;
            return true;
        }
        return false;

    }