code: private void populateLeaf(String parentName, Row row, Task task)
     {
        if (row.getInteger("TASKID") != null)
        {
           populateTask(row, task);
        }
        else
        {
           populateMilestone(row, task);
        }
  
        String name = task.getName();
        if (name == null || name.isEmpty())
        {
           task.setName(parentName);
        }
     }
docs: Adds a leaf node, which could be a task or a milestone.
  
  @param parentName parent bar name
  @param row row to add
  @param task task to populate with data from the row