code: private void writeTasks(List<Task> tasks) throws IOException
     {
        for (Task task : tasks)
        {
           writeTask(task);
           writeTasks(task.getChildTasks());
        }
     }
docs: Recursively write tasks.
  
  @param tasks list of tasks
  @throws IOException