code: private void readTaskBaselines(Project.Tasks.Task xmlTask, Task mpxjTask, TimeUnit durationFormat)
     {
        for (Project.Tasks.Task.Baseline baseline : xmlTask.getBaseline())
        {
           int number = NumberHelper.getInt(baseline.getNumber());
  
           Double cost = DatatypeConverter.parseCurrency(baseline.getCost());
           Duration duration = DatatypeConverter.parseDuration(m_projectFile, durationFormat, baseline.getDuration());
           Date finish = baseline.getFinish();
           Date start = baseline.getStart();
           Duration work = DatatypeConverter.parseDuration(m_projectFile, TimeUnit.HOURS, baseline.getWork());
  
           if (number == 0)
           {
              mpxjTask.setBaselineCost(cost);
              mpxjTask.setBaselineDuration(duration);
              mpxjTask.setBaselineFinish(finish);
              mpxjTask.setBaselineStart(start);
              mpxjTask.setBaselineWork(work);
           }
           else
           {
              mpxjTask.setBaselineCost(number, cost);
              mpxjTask.setBaselineDuration(number, duration);
              mpxjTask.setBaselineFinish(number, finish);
              mpxjTask.setBaselineStart(number, start);
              mpxjTask.setBaselineWork(number, work);
           }
        }
     }
docs: Reads baseline values for the current task.
  
  @param xmlTask MSPDI task instance
  @param mpxjTask MPXJ task instance
  @param durationFormat duration format to use