Collection<Duct> allHeads;
InputSource streamedHead;
try
{
streamGraph = new Hadoop2TezStreamGraph( currentProcess, flowNode, inputMap, outputMap );
allHeads = streamGraph.getHeads();
streamedHead = streamGraph.getStreamedHead();
for( Duct head : allHeads )