expandTreeNode method in Controller class.