refractored findRuleByName to findProductionByName