if (root.equals(display)) loadData(); else model.refreshSelectedDisplay();
if (root.equals(display)) { if (model.getBrowserType() == IMAGES_EXPLORER) loadFilteredImagesForHierarchy(); else loadData(); } else model.refreshSelectedDisplay();
    public void refresh()    {        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 display = model.getSelectedDisplay();        if (display == null) return;        if (!display.hasChildrenDisplay()) return;        TreeImageDisplay root = view.getTreeRoot();        display.removeAllChildrenDisplay();        if (root.equals(display)) loadData();        else model.refreshSelectedDisplay();        fireStateChange();    }