Hi
Given a BeanModel object how do I obtain the TreePanel.TreeNode corresponding to it from the TreePanel?

My purpose in obtaining the TreeNode is to set its visibility to true or false. For this I do the following

Code:
filesTree.getView().getElementContainer(searchRootNode).getStyle().setDisplay(Display.NONE);
where filesTree is a TreePanel Object and searchRootNode is a TreePanel.TreeNode object.

But if there is a simpler way of setting the visibility then please tell me about it.