}
return conflictsList;
}
public Binding getPerfectMatch(ContextSet contextSet, TriggerSequence triggerSequence) {
Binding result = null;
Binding currentResult = null;
List<Context> contexts = contextSet.getContexts();
ListIterator<Context> it = contexts.listIterator(contexts.size());
while (it.hasPrevious()) {
Context c = it.previous();
BindingTable table = getTable(c.getId());
if (table != null) {
currentResult = table.getPerfectMatch(triggerSequence);
}
if (currentResult != null) {
if (isMostActiveScheme(currentResult)) {
return currentResult;
}
if (result == null) {
result = currentResult;
} else {
int rc = compareSchemes(result.getSchemeId(), currentResult.getSchemeId());
if (rc < 0) {
result = currentResult;
}
}
}