My design is that my tree is lazy fetched with a TreeLoader. I assume that when returning a node, it is the responsibility of the servlet to return true/false for 'leaf', and if false, then return the children.

The problem is that a user may do something with context menu 'add' function that causes a leaf to become a node with children. Wondering how I do that?