case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state.");
case READY: case NEW: break; default: throw new IllegalStateException("This method should only be " + "invoked in the READY or NEW state.");
    public void showFinder(boolean b)    {        switch (model.getState()) {            case DISCARDED:            case SAVE:                throw new IllegalStateException(                    "This method cannot be invoked in the DISCARDED or SAVE " +                    "state.");        }        if (model.getSelectedBrowser() == null) return;        Finder finder = model.getFinder();        if (b == finder.isDisplay())  return;        Boolean oldValue =             finder.isDisplay() ? Boolean.TRUE : Boolean.FALSE,        newValue = b ? Boolean.TRUE : Boolean.FALSE;        view.showFinder(b);        firePropertyChange(FINDER_VISIBLE_PROPERTY, oldValue, newValue);    }