@Override
public void run( ) {
Thread.currentThread( ).setUncaughtExceptionHandler( ( UncaughtExceptionHandler ) this );
try {
long sign = ( long ) ( Math.pow( -1f, ( float ) ( ++phase % 2 ) ) );
<BUG>ListenerRegistry.getInstance( ).fireEvent( new ClockTick( ).setMessage( sign * System.currentTimeMillis( ) ) );

} catch ( EventFailedException e ) {} catch ( Exception t ) {
LOG.error( t, t );</BUG>
}

@Override
public void run( ) {
timer.cancel( );
