void (IonReader reader, DefaultExternalProject project) { reader.next(); reader.stepIn(); Map<String, DefaultExternalTask> tasks = new HashMap<>(); DefaultExternalTask task; while ((task = readTask(reader)) != null) { tasks.put(task.getName(), task); } project.setTasks(tasks); reader.stepOut(); }