String s0 = arg0.getStringValue();
String s1 = arg1.getStringValue();
if (collator instanceof NamedCollation &&
((NamedCollation)collator).getCollation() instanceof RuleBasedCollator) {
collator = new RuleBasedSubstringMatcher((RuleBasedCollator)((NamedCollation)collator).getCollation());
}
if (collator instanceof SubstringMatcher) {
switch(operation) {
case CONTAINS: