code: public void setDuration(int index, Duration value)
     {
        set(selectField(TaskFieldLists.CUSTOM_DURATION, index), value);
     }
docs: Set a duration value.
  
  @param index duration index (1-10)
  @param value duration value