this.em = emf.createEntityManager();
if (escalationHandler != null) {
this.escalatedDeadlineHandler = escalationHandler;
}
eventSupport = new TaskEventSupport();
eventKeys = new EventKeys();
eventSupport.addEventListener(new MessagingTaskEventListener(eventKeys));
scheduler = new ScheduledThreadPoolExecutor(3);
long now = System.currentTimeMillis();