private void readFromFile()
    {
        try
        {
            knowledgeBuilder.add(ResourceFactory.newReaderResource(new FileReader(new File(System.getProperty("user.dir") + "/res/rules", "lighterRules.drl"))), ResourceType.DRL);
        } catch (FileNotFoundException e){e.printStackTrace();}

        if (knowledgeBuilder.hasErrors())
        {
            System.out.println(knowledgeBuilder.getErrors().toString());
            throw new RuntimeException("Unable to compile drl\".");
        }
    }