feat(tree): Add API method to refresh hierarchy based on model