code: private void writeTasks(Project project)
     {
        Project.Tasks tasks = m_factory.createProjectTasks();
        project.setTasks(tasks);
        List<Project.Tasks.Task> list = tasks.getTask();
  
        for (Task task : m_projectFile.getTasks())
        {
           list.add(writeTask(task));
        }
     }
docs: This method writes task data to an MSPDI file.
  
  @param project Root node of the MSPDI file