if(instanceOf == null) return result;\r
Resource configuration = graph.getSingleObject(instanceOf, sr2.IsDefinedBy);\r
for(Resource input : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Input))) {\r
+ if(!graph.getObjects(input, sr.Variable_isHeadOf).isEmpty())\r
+ continue; // Only inputs with tail dependencies allowed.\r
+ \r
Resource dependency = null;\r
for(Resource dep : graph.getObjects(module, sr.Variable_isHeadOf)) {\r
Resource refersTo = graph.getPossibleObject(dep, sr.Dependency_refersTo);\r