public synchronized void updateTaskStatus(Task<?> tTask) {
    if (!tasks.containsKey(tTask.getId())) {
      tasks.put(tTask.getId(), new TaskDisplay(tTask));
    }
    tasks.get(tTask.getId()).updateStatus(tTask);
  }
Preferred objectMapper for this class.

It must be used to have things work in shaded environment (and its also more performant).
ql/src/java/org/apache/hadoop/hive/ql/QueryDisplay.java