ksession = createKnowledgeSession(kbase);
List<Command<?>> commands = new ArrayList<Command<?>>();
commands.add(new NewKnowledgeBuilderCommand());
commands.add(new KnowledgeBuilderAddCommand(res, ResourceType.DRL, null));
commands.add(new KnowledgeBuilderGetErrorsCommand("errors"));
Command<?> cmds = CommandFactory.newBatchExecution( commands );
ExecutionResults result = (ExecutionResults) ksession.execute( cmds );
assertNotNull(result);