throw new RuntimeException(String.format("GraphFactory could not instantiate this Graph implementation [%s]", clazz), e2);
}
final Graph returnedGraph;
if (strategies != null && strategies.length == 1) {
final StrategyWrappedGraph swg = new StrategyWrappedGraph(g);
swg.getStrategy().setGraphStrategy(strategies[0]);
returnedGraph = swg;
} else if (strategies != null && strategies.length > 1) {
final StrategyWrappedGraph swg = new StrategyWrappedGraph(g);
swg.getStrategy().setGraphStrategy(new SequenceGraphStrategy(strategies));
returnedGraph = swg;
} else
returnedGraph = g;
return returnedGraph;