Added support for drools rules for entity matching.