private function formatName(PuliResource $resource)
    {
        $name = $resource->getName();

        if ($resource->hasChildren()) {
            return '<c1>'.$name.'</c1>';
        }

        return $name;
    }