diff --git a/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java b/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java index dbddb8fac3b..a8095135a12 100644 --- a/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java @@ -54,7 +54,7 @@ public KieSession execute(Context context) { KieSessionConfiguration kieSessionConfiguration = customizeSessionConfiguration.apply(sessionName, kieContainer); - KieSession ksession = kieContainer.newKieSession(kieSessionConfiguration); + KieSession ksession = kieContainer.newKieSession(sessionName, kieSessionConfiguration); ((RegistryContext) context).register(KieSession.class, ksession); diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java index 45e9f2ac41e..b3ca2c7e275 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java @@ -62,7 +62,8 @@ private ScenarioSimulationXMLPersistence() { xt = XStreamUtils.createNonTrustingXStream(new DomDriver()); xt.addPermission(new WildcardTypePermission( new String[] { - "org.drools.scenariosimulation.api.model.*" + "org.drools.scenariosimulation.api.model.*", + "org.drools.scenariosimulation.api.model.imports.*", })); xt.setMode(XStream.NO_REFERENCES);