Enumeration e = accounts.elements(); while (e.hasMoreElements()) { Account ac = (Account) e.nextElement(); if (ac.registered) { params.clear(); params.add(new Integer(ac.id)); execute("core.unregister", params); } }
params.clear(); params.addElement(GUI_HOST); params.addElement(new Integer(GUI_PORT)); execute("core.unregisterGui", params);
    public void windowClose() {        Enumeration e = accounts.elements();        while (e.hasMoreElements()) {            Account ac = (Account) e.nextElement();            if (ac.registered) {                params.clear();                params.add(new Integer(ac.id));                execute("core.unregister", params);            }        }    }