Maybe sometime I will look into it. But the example code is not how I would implement it.
It might be ok for a custom solution, but I would make a control adapter to change the rendering of the menu instead of looping through it after it already databound.
If you look in the source code under Web/Controls/Adapters you might get an idea of how I would implement it.
Don't hold your breath waiting for me to implement it though, there is a lot on my to do list.
Best,
Joe