{
log.info("Initializing task tree ...");
if (taskDao == null) {
log.info("Can't initialize task tree, taskDao isn't set yet (shouldn't occur):");
// Stack trace for debugging refresh() call without TaskDao (does only occur in productive mode):
final StackTraceHolder sth = new StackTraceHolder();
log.info(sth);
return;
}
TaskNode newRoot = null;
taskMap = new HashMap<Integer, TaskNode>();