* @param requiredTaskType
* The required type of the input task.
* @return The task to be used as input at the specified index.
*/
protected Task getInputTask(PipeTasks pipeTasks, int pipeIndex, Class<? extends Task> requiredTaskType) {
Task inputTask;
Integer pipeIndexO = new Integer(pipeIndex);
// We use the specified pipe name if it exists, otherwise we get the
// next available default pipe.
if (inputPipeNames.containsKey(pipeIndexO)) {