} else {
            return $defaultValue;
        }
    }
    public function GetShowPageList()
    {
        return true;
    }
    public function GetShortCaption()
    {
        return $this->GetCaption();
    }
    public function GetCaption()
    {
        return $this->GetLocalizerCaptions()->GetMessageString('AdminPage');
    }
    public function GetPageFileName()
    {
        return basename(__FILE__);
    }
}
$tableBasedGrants = CreateTableBasedGrantsManager();
$page = new AdminPage($tableBasedGrants);
$page->setHeader(GetPagesHeader());
$page->setFooter(GetPagesFooter());
$page->OnGetCustomTemplate->AddListener('Global_GetCustomTemplateHandler');
if (!GetApplication()->GetUserAuthorizationStrategy()->HasAdminGrant(GetApplication()->GetCurrentUser())) {
    RaiseSecurityError($page, 'You do not have permission to access this page.');
}
$renderer = new ViewRenderer($page->GetLocalizerCaptions());
echo $renderer->Render($page);