Map<String, Object> eventParams = event.getParameters();
Map<String, Object> eventMetadata = event.getMetadata();
Task task = taskService.getTask((Long) eventMetadata.get(TASK_ID));
if (task == null || !task.isEnabled()) {
taskRetryHandler.unscheduleTaskRetry((String) eventMetadata.get(JOB_SUBJECT));
<BUG>} else {
handleTask(task, eventParams, true);
}
setIsHandled(false);</BUG>
}

Map<String, Object> eventParams = event.getParameters();
eventParams.putAll(event.getMetadata());
TasksEventParser parser = null;
if (eventParams != null) {
parser = taskService.findCustomParser((String) eventParams.get(TasksEventParser.CUSTOM_PARSER_EVENT_KEY));
