Iterator eventIterator = events.iterator();
boolean found = false;
while (!found && eventIterator.hasNext()) {
Event inEvent = (Event)eventIterator.next();
if ( inEvent instanceof ComparableEvent
&& current.equalsEvent((ComparableEvent)inEvent)) {
found = true;
}
}
if (!found) {
hasParams = this.addEvent(buffer, current, hasParams);