class CDIInstanceExample {

    public void go(PrintStream out) {

        KieSession ksession = kSession.get();

        ksession.setGlobal("out", out);
        ksession.insert(new Message("Dave", "Hello, HAL. Do you read me, HAL?"));
        ksession.fireAllRules();
    }

}