Object name = o.nextElement();
Object keyName = o.nextElement();
    protected void doOutputs() {        while (true) {            try {                synchronized (currentValues) {                    if (currentValues.size() == 0) {                        currentValues.wait();                    }                }                while (!currentValues.isEmpty()) {                    int value;                    synchronized (currentValues) {                        value = ((Integer) currentValues.firstElement()).intValue();                        currentValues.removeElementAt(0);                    }                    for (Enumeration o = outputs.keys(); o.hasMoreElements();) {                        Object name = o.nextElement();                        if (outputs.get(name) instanceof Output) {                            Output out = (Output) outputs.get(name);                            try {                                out.output(value);                            } catch (Exception e) {                                Logger.log("Uncaught Exception: ", e);                            }                        }                    }                }            } catch (Exception e) {                e.printStackTrace();            }        }    }