for (Iterator it = processors.iterator(); it.hasNext(); ) { EventProcessor ep = (EventProcessor) it.next(); int start = ((Integer) marker.get(ep)).intValue(); int max = events.size(); write(ep, events, start, max); marker.put(ep, new Integer(events.size()));
for (Iterator it2 = events.iterator(); it2.hasNext(); ) { Event ev = (Event) it2.next(); ep.write(ev); }
    private void process(Collection processors, List events) {        HashMap marker = new HashMap();        for (Iterator it = processors.iterator(); it.hasNext(); ) {            EventProcessor ep = (EventProcessor) it.next();            marker.put(ep, s_zero);        }        for (Iterator it = processors.iterator(); it.hasNext(); ) {            EventProcessor ep = (EventProcessor) it.next();            int start = ((Integer) marker.get(ep)).intValue();            int max = events.size();            write(ep, events, start, max);            marker.put(ep, new Integer(events.size()));            ep.flush();        }    }