@SuppressWarnings("ReturnInsideFinallyBlock")
public void ejbTimeout(final TimerData timerData) {
final Thread thread = Thread.currentThread();
final ClassLoader loader = thread.getContextClassLoader(); // container loader
try {
Timer timer = getTimer(timerData.getId());
// quartz can be backed by some advanced config (jdbc for instance)
if (timer == null && timerStore instanceof MemoryTimerStore && timerData.getTimer() != null) {
try {
timerStore.addTimerData(timerData);
timer = timerData.getTimer(); // TODO: replace memoryjobstore by the db one?