7475767778798081828384
TaskInternal task = taskInfo.getTask(); synchronized (lock) { taskListener.beforeExecute(task); } try { task.executeWithoutThrowingTaskFailure(); } finally { synchronized (lock) { taskListener.afterExecute(task, task.getState()); } }