source.setName("CND Import Source");
this.graph = Graph.create(source, context);
for (String resourceName : Arrays.asList(resourceNames)) {
Graph.Batch batch = graph.batch();
Destination destination = new GraphBatchDestination(batch);
CndImporter importer = new CndImporter(destination, pathFactory.createRootPath());
InputStream is = getClass().getResourceAsStream(resourceName);
// This submits the batch
importer.importFrom(is, problems, resourceName);
}
this.problems = new ImmutableProblems(problems);
}