Reader source = new InputStreamReader(DebugViewsTest.class.getResourceAsStream("/debug.drl"));
KnowledgeBuilderImpl builder = new KnowledgeBuilderImpl();
builder.addPackageFromDrl(source);
KnowledgeBaseImpl ruleBase = (KnowledgeBaseImpl) KnowledgeBaseFactory.newKnowledgeBase();
ruleBase.addPackage(builder.getPackage());
StatefulKnowledgeSession session = ruleBase.newStatefulKnowledgeSession();
session.setGlobal("s", "String");
List list = new ArrayList();
list.add("Value");
session.setGlobal("list", list);
Entry[] globals = ((MapGlobalResolver) session.getGlobals()).getGlobals();