public void initWithEvaluator(BasicIndexRuleEvaluator ruleEvaluator, String rules, String key) {
// Reuse old parsed rule set if exists...
//...if not, create new parser and save results
if(!this.parserResultsMap.containsKey(key)){
TemplatesRuleParser parser= new TemplatesRuleParser();
parser.start(createInputStream(rules));
this.parserResultsMap.put(key, parser.getResults());
}
//Reuse old generator if exists...
//..if not create new