838485868788899091
} public synchronized void createTask(Task task) throws TaskIDConflictException { String id = task.getID(); if (_tasks.containsKey(id)) { throw new TaskIDConflictException("Task with ID '" + id + "' already exists"); } _tasks.put(id, task); }