protected void buildGraph( FlowStepFactory flowStepFactory, FlowElementGraph flowElementGraph, Map<ElementGraph, List<? extends ElementGraph>> nodeSubGraphsMap, Map<ElementGraph, List<? extends ElementGraph>> pipelineSubGraphsMap )
{
for( ElementGraph stepSubGraph : nodeSubGraphsMap.keySet() )
{
List<? extends ElementGraph> nodeSubGraphs = nodeSubGraphsMap.get( stepSubGraph );
FlowNodeGraph flowNodeGraph = createFlowNodeGraph( flowStepFactory, flowElementGraph, pipelineSubGraphsMap, nodeSubGraphs );
EnumMultiMap<FlowElement> annotations = flowNodeGraph.getAnnotations();
if( !annotations.isEmpty() )
stepSubGraph = new AnnotatedDecoratedElementGraph( stepSubGraph, annotations );
FlowStep flowStep = flowStepFactory.createFlowStep( stepSubGraph, flowNodeGraph );
addVertex( flowStep );
}
bindEdges();
}