protected function bootstrapButtonGroup($class, $role, array $buttons) {

        $attributes = [];

        $attributes["class"] = $class;
        $attributes["role"]  = $role;

        $innerHTML = "\n" . implode("\n", $buttons) . "\n";

        return static::coreHTMLElement("div", $innerHTML, $attributes);
    }