// apply contracted sub-graph matcher to get the bounded sub-graph of the original graph
ElementGraph contractedGraph = contractedTransformed.getEndGraph();
Match match = findAllPrimaries ? subGraphFinder.findAllMatches( plannerContext, contractedGraph ) : subGraphFinder.findFirstMatch( plannerContext, contractedGraph );
if( !match.foundMatch() )
return transformed;
ElementGraph contractedSubGraph = match.getMatchedGraph();
ElementSubGraph resultSubGraph = asSubGraphOf( rootGraph, contractedSubGraph ); // the bounded sub-graph of the rootGraph