reloadManager.clear(); reloadManager = null; extManager.clear(); extManager = null; dispatcher.clear(); dispatcher = null;  frames.clear(); props.clear();  Object[] listeners = listenerList.getListenerList(); for (int i=0; i<listeners.length; i++) { listenerList.remove(listeners[i].getClass(), (EventListener)listeners[i+1]); }
    protected void destroy() {        Iterator it = frames.iterator();        while (it.hasNext()) {            SContainer container = ((SFrame)it.next()).getContentPane();            if (container != null)                container.removeAll();        }    }