}
return new ContextDetailMatchPair(filter, matchEventSpec, allTags);
}
// compile as pattern if there are prior matches to consider, since this is a type of followed-by relationship
EvalFactoryNode factoryNode = services.getPatternNodeFactory().makeFilterNode(filter.getFilterSpecRaw(), filter.getOptionalFilterAsName(), 0);
ContextDetailConditionPattern pattern = new ContextDetailConditionPattern(factoryNode, true);
Pair<MatchEventSpec, Set<String>> matches = validatePatternContextConditionPattern(pattern, eventTypesReferenced, priorMatches, priorAllTags);
return new ContextDetailMatchPair(pattern, matches.getFirst(), matches.getSecond());
}
else {