{
ArrayOfEvent aoe = (ArrayOfEvent) value;
Event[] evts = aoe.getEvent();
for (int evtID = 0; evtID < evts.length; ++evtID)
{
Event anEvent = evts[evtID];
System.out.println("\n----------" + "\n Event ID: "
+ anEvent.getKey() + "\n Event: "
+ anEvent.getClass().getName()
+ "\n FullFormattedMessage: "
+ anEvent.getFullFormattedMessage()
+ "\n VM Reference: "
+ anEvent.getVm().getVm().get_value()
+ "\n----------\n");
}
} else if (value instanceof VmEvent)
{
VmEvent anEvent = (VmEvent) value;
System.out.println("\n----------" + "\n Event ID: "
+ anEvent.getKey() + "\n Event: "
+ anEvent.getClass().getName()
+ "\n FullFormattedMessage: "
+ anEvent.getFullFormattedMessage()
+ "\n VM Reference: "
+ anEvent.getVm().getVm().get_value()
+ "\n----------\n");
}
System.out.println("===============");
}
}