public Rule getRuleByName(String name) {
        for (Rule r : rulesList) {
            if (r.getRuleName().equals(name)){
                return r;
            }
        }
        
        return null;
    }