code refactoring: getParents() and updateTree() methods moved from
BeTree component to Tree model