private function activateFolderById($id, FolderInterface $folder)
    {
        foreach ($folder->getChildren() as $child) {
            if ($child->getId() == $id) {
                $child->setActive(true);
                return true;
            }
            if ($this->activateFolderById($id, $child)) {
                return true;
            }
        }
        return false;
    }