CommandContext IHasCommandContext.GetCommandContext()
        {
            CommandContext context     = new CommandContext();
            Item           itemNotNull = Client.GetItemNotNull("/sitecore/content/Applications/Redirect Manager/Ribbon", Client.CoreDatabase);

            context.RibbonSourceUri = itemNotNull.Uri;
            string     selectedValue = GridUtil.GetSelectedValue("Redirects");
            string     str2          = string.Empty;
            ListString str3          = new ListString(selectedValue);

            if (str3.Count > 0)
            {
                str2 = str3[0].Split(new char[] { '^' })[0];
            }
            context.Parameters["ID"]          = selectedValue;
            context.Parameters["domainname"]  = SecurityUtility.GetDomainName();
            context.Parameters["accountname"] = str2;
            context.Parameters["accounttype"] = AccountType.User.ToString();
            return(context);
        }