protected override void BootstrapProcess(TagHelperContext context, TagHelperOutput output) {
     context.SetButtonGroupContext(this);
     output.Attributes.Add("role", "group");
     if (context.HasInputGroupContext())
     {
         Size = BootstrapTagHelpers.Size.Default;
         if (!context.HasInputGroupAddonContext())
         {
             output.TagName = "span";
             output.AddCssClass("input-group-btn");
         }
         context.RemoveInputGroupContext();
     }
     else {
         output.TagName = "div";
         if (Vertical)
             output.AddCssClass("btn-group-vertical");
         else
             output.AddCssClass("btn-group");
         if (Size.HasValue)
             output.AddCssClass("btn-group-" + Size.Value.GetDescription());
         if (Justified)
             output.AddCssClass("btn-group-justified");
     }
 }