ModalityState () { TimerListener delegate = myRef.get(); if (delegate != null) { return delegate.getModalityState(); } else { ActionManagerEx.getInstanceEx().removeTimerListener(this); return null; } }