protected static function enableToolbar($root)
    {
        if (!$root instanceof Toolbar) {
            $group = $root;
            $root  = static::createToolbar(array(), true);

            if ($group instanceof Group && $group->getChildren()) {
                $root->addChild($group);
            }
        }

        return $root;
    }