for (int i=0; i<listeners.length; i++) {
for ( int i = listeners.length-2; i>=0; i -= 2 ) {
    protected void destroy() {        Iterator it = frames.iterator();        while (it.hasNext()) {            SContainer container = ((SFrame)it.next()).getContentPane();            if (container != null)                container.removeAll();        }                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]);        } // end of for (int i=0; i<; i++)    }