}
public synchronized void addEvent(BusEvent e) {
if (events.size() == maxEventsCache) {
BusEvent event = (BusEvent)events.get(0);
LOG.log(Level.FINE, "Event "
+ event.getID()
+ " is removed because the event cache is full."
+ " Maximum number of events stored : "
+ maxEventsCache);
events.remove(event);