- for(Resource part : ConsistsOfProcess.walk(graph, Collections.singleton(r), Collections.emptySet(), true)) {
- if(findByIdentifier(graph, targetRoot, part))
+ List<InternalEntry> entries = ConsistsOfProcess.walk(graph, null, Collections.singleton(r), Collections.emptySet(), true);
+ for(InternalEntry entry : entries) {
+ if(findByIdentifier(graph, targetRoot, entry.resource))