/**
* Insure that timer methods can be invoked for the current operation on this Context.
*/
private void checkState() throws IllegalStateException, NoSuchObjectLocalException {
final BeanContext beanContext = ThreadContext.getThreadContext().getBeanContext();
final BaseContext context = (BaseContext) beanContext.get(EJBContext.class);
context.doCheck(BaseContext.Call.timerMethod);
if (timerData.isCancelled() && !timerData.isStopped()) {
throw new NoSuchObjectLocalException("Timer has been cancelled");
}