int defaultTaskCount;
defaultTaskCount = defaultTasks.size();
if (defaultTaskCount == 0) {
throw new OsmosisRuntimeException("No default pipes are available as input for task " + taskId + ".");
}
task = defaultTasks.pop();
// Ensure the task is of the correct type.
if (!verifyPipeType(requiredTaskType, task)) {
throw new OsmosisRuntimeException(
"Task " + taskId + " does not support data provided by default pipe stored at level "
+ (defaultTasks.size() + 1) + " in the default pipe stack.");
}
if (LOG.isLoggable(Level.FINE)) {