public function setRecursiveAttribute(ItemInterface $menu, array $attr)
    {
        $itemIterator = new RecursiveItemIterator($menu->getIterator());

        $iterator = new \RecursiveIteratorIterator($itemIterator, \RecursiveIteratorIterator::SELF_FIRST);
        foreach ($iterator as $menuItem) {
            /* @var ItemInterface $menuItem */
            $menuItem->setChildrenAttributes($attr);
        }
    }