ObjectInputStream in = xstream.createObjectInputStream( new FileReader(logFileName) );
try {
while (true) {
Object object = in.readObject();
if (object instanceof WorkingMemoryLog) {
WorkingMemoryLog log = (WorkingMemoryLog) object;
eventList.addAll(log.getEvents());
phreak |= log.getEngine().equalsIgnoreCase("PHREAK");
} else if (object instanceof LogEvent) {
eventList.add((LogEvent) object);
} else if (object instanceof List) {
drools4 = true;
eventList.addAll((List<LogEvent>) object);