private void initDrools() {
        readFromFile();
        Collection<KnowledgePackage> knowledgePackages = knowledgeBuilder.getKnowledgePackages();

        KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
        config.setOption(EventProcessingOption.STREAM);
        KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(config);

        knowledgeBase.addKnowledgePackages(knowledgePackages);

        KnowledgeSessionConfiguration conf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
        conf.setOption(ClockTypeOption.get("realtime"));
        knowledgeSession = knowledgeBase.newStatefulKnowledgeSession(conf, null);
        knowledgeSession.setGlobal("lighter", lighter);

        startEntryPoint = knowledgeSession.getWorkingMemoryEntryPoint("startEntryPoint");
        new Thread() {
            @Override public void run()
            {
                knowledgeSession.fireUntilHalt();
            }
        }.start();
    }