view.clearTree(); return;
    public void refreshTree()    {        switch (model.getState()) {	        case LOADING_DATA:	        case LOADING_LEAVES:	        case DISCARDED:	            throw new IllegalStateException(	                    "This method cannot be invoked in the LOADING_DATA, "+	                    " LOADING_LEAVES or DISCARDED state.");        }        TreeImageDisplay root = view.getTreeRoot();        if (!root.isChildrenLoaded()) return;	    if (!model.isSelected()) {	        view.clearTree();	        return;	    }        if (model.getBrowserType() == IMAGES_EXPLORER) {            root.removeAllChildrenDisplay();            model.setSelectedDisplay(root);            loadFilteredImagesForHierarchy();        } else {            RefreshVisitor visitor = new RefreshVisitor(this);            accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY);            root.removeAllChildrenDisplay();            model.setSelectedDisplay(root);            if (visitor.getFoundNodes().size() == 0) loadData();            else model.loadRefreshedData(visitor.getFoundNodes());        }    }