Callback for tree save operation