repositoryModuleService.ensureBinaryUpToDate(moduleItem);
// KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null, classLoader));
SimulationFluent simulationFluent = new DefaultSimulationFluent();
for (SimulationPathModel path : simulation.getPaths().values()) {
simulationFluent.newPath(path.getName());
simulationFluent.newKnowledgeBuilder() // TODO only do once, for the root
.add(ResourceFactory.newByteArrayResource(moduleItem.getCompiledBinaryBytes()), ResourceType.PKG)
.end();
simulationFluent.newKnowledgeBase()
.addKnowledgePackages()