}
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 = servicesContext.getPatternNodeFactory().makeFilterNode(filter.getFilterSpecRaw(), filter.getOptionalFilterAsName(), 0);
ContextDetailConditionPattern pattern = new ContextDetailConditionPattern(factoryNode, true, false);
Pair<MatchEventSpec, Set<String>> matches = validatePatternContextConditionPattern(statementContext, pattern, eventTypesReferenced, priorMatches, priorAllTags);
return new ContextDetailMatchPair(pattern, matches.getFirst(), matches.getSecond());
}
else if (endpoint instanceof ContextDetailConditionImmediate) {