public function getModuleByName(string $moduleName): \BFW\Module
    {
        if ($this->hasModule($moduleName) === false) {
            throw new Exception(
                'The Module '.$moduleName.' has not been found.',
                $this::ERR_NOT_FOUND
            );
        }

        return $this->modules[$moduleName];
    }