for (int i = 0; i < loopNumber; i++) {
try {
IAccessEvent ae = DummyAccessEventBuilder.buildNewAccessEvent();
t1 = System.nanoTime();
//average length of the next method: 4000 nanos
ae.prepareForDeferredProcessing();
oos.writeObject(ae);
oos.flush();
t2 = System.nanoTime();
total += (t2 - t1);
if (++resetCounter >= resetFrequency) {