code: private void readResourceBaselines(Project.Resources.Resource xmlResource, Resource mpxjResource)
     {
        for (Project.Resources.Resource.Baseline baseline : xmlResource.getBaseline())
        {
           int number = NumberHelper.getInt(baseline.getNumber());
  
           Double cost = DatatypeConverter.parseCurrency(baseline.getCost());
           Duration work = DatatypeConverter.parseDuration(m_projectFile, TimeUnit.HOURS, baseline.getWork());
  
           if (number == 0)
           {
              mpxjResource.setBaselineCost(cost);
              mpxjResource.setBaselineWork(work);
           }
           else
           {
              mpxjResource.setBaselineCost(number, cost);
              mpxjResource.setBaselineWork(number, work);
           }
        }
     }
docs: Reads baseline values for the current resource.
  
  @param xmlResource MSPDI resource instance
  @param mpxjResource MPXJ resource instance