code: public Duration getBaselineDuration(int baselineNumber)
     {
        Object result = getCachedValue(selectField(TaskFieldLists.BASELINE_DURATIONS, baselineNumber));
        if (result == null)
        {
           result = getCachedValue(selectField(TaskFieldLists.BASELINE_ESTIMATED_DURATIONS, baselineNumber));
        }
  
        if (!(result instanceof Duration))
        {
           result = null;
        }
        return (Duration) result;
     }
docs: Retrieve a baseline value.
  
  @param baselineNumber baseline index (1-10)
  @return baseline value