99100101102103104105106107108109
final EventObject event = new KillEvent(); synchronized (event) { dispatchEvent(event); if (wait) { try { event.wait(); } catch (final InterruptedException e) { log.info("wait for kill event interrupted!"); } } }