public function installModules()
    {
        foreach ($this->getRequiredModules() as $module_id) {
            if ($this->getModuleModel()->install($module_id) !== true) {
                $error = $this->translation->text('Failed to install module @module_id', array('@module_id' => $module_id));
                throw new RuntimeException($error);
            }
        }

        return true;
    }