MonitorContendedEnteredEvent contendedEnteredEvent = (MonitorContendedEnteredEvent) event;
handler.onContendedMonitorEntered( suspension, event.virtualMachine(),
contendedEnteredEvent.thread(),
(MonitorContendedEnteredRequest) event.request(),
contendedEnteredEvent.monitor(),
contendedEnteredEvent.location() );
}
else if ( event instanceof MonitorWaitEvent )
{
MonitorWaitEvent waitEvent = (MonitorWaitEvent) event;
handler.onMonitorBeginWait( suspension, event.virtualMachine(), waitEvent.thread(),