Task aggtask = (Task) tasks.nextElement(); System.out.println("aggtask changed: " + format(aggtask)); reallocateAggtask(aggtask, remote);
Task aggTask = (Task) tasks.nextElement(); try { checkTaskValid(aggTask); System.out.println("aggTask changed: " + format(aggTask)); reallocateAggtask(aggTask, remote); } catch (RuntimeException re) { System.err.println("handleAggTasksChanged: " + re); }
    private void handleAggTasksChanged(Enumeration tasks, boolean remote) {        while (tasks.hasMoreElements()) {            Task aggtask = (Task) tasks.nextElement();            System.out.println("aggtask changed: " + format(aggtask));            reallocateAggtask(aggtask, remote);        }    }