Handler

storeExpansionState

Gives the handler the oportunity to store the expansion state.
Before to transform the tree, the handlers are offered to store information about expansion state.
After the transformation, the handlers are queried to restore the expansion state.
The producer can store any object that would allow it to identify what nodes to expand.
The default behavior of Handler is to re-expand children with the same name.