private function InitModule(array $idParts)
    {
        if (count($idParts) < 1 || count($idParts) > 2)
        {
            //TODO: Message
            Response::Redirect(BackendRouter::ModuleUrl(new TemplateList()));
        }
        $this->module = ClassFinder::CreateFrontendModule($idParts[0]);
        if (!$this->module instanceof FrontendModule || !$this->module->AllowCustomTemplates())
        {
            //TODO: Message
            Response::Redirect(BackendRouter::ModuleUrl(new TemplateList()));
        }
    }