new CaseExactSubstringMatchingRuleFactory(),
new CaseExactIA5SubstringMatchingRuleFactory(),
new CaseIgnoreSubstringMatchingRuleFactory(),
new CaseIgnoreIA5SubstringMatchingRuleFactory(),
new OctetStringSubstringMatchingRuleFactory(),
new TelephoneNumberSubstringMatchingRuleFactory()};
MatchingRuleFactory<?> currentFactory = null;
try
{
for(MatchingRuleFactory<?> factory: factories)