// Build a unique task id.
taskId = (taskConfigList.size() + 1) + "-" + taskType;
// Create a new task information object and add it to the list.
taskConfigList.add(
new TaskConfiguration(taskId, taskType, pipeArgs, taskArgs, defaultArg)
);
return i;
}