TimerState timer = em.find(TimerState.class, timerId);
// If timer is null need to throw a FinderException so
// that the caller can handle it.
if( timer == null) {
throw new FinderException("timer " + timerId + " does not exist");
}
// First set the timer to the cancelled state. This step is
// performed whether or not the current server instance owns
// the timer.