Gee, a nice sample. But the list of tasks should actually be
* find a flaw in the materialized path persistence design (based on the four lines of code above)
* propose a fix
* write a piece of code to replace node A with node B and reparent node A's children
* and yeah, print whatever the result is