BatchExecutionCommand batch = kcmd.newBatchExecution(Arrays.asList(insert, fire), "defaultKieSession");
String payload = BatchExecutionHelper.newXStreamMarshaller().toXML(batch);
String containerId = "command-script-container";
KieServerCommand create = new CreateContainerCommand(new KieContainerResource( containerId, releaseId1, null));
KieServerCommand call = new CallContainerCommand(containerId, payload);
KieServerCommand dispose = new DisposeContainerCommand(containerId);
List<KieServerCommand> cmds = Arrays.asList(create, call, dispose);
CommandScript script = new CommandScript(cmds);
List<ServiceResponse<? extends Object>> reply = client.executeScript(script);