}
private ContextDetailMatchPair validateRewriteContextCondition(EPServicesContext servicesContext, StatementContext statementContext, ContextDetailCondition endpoint, Set<String> eventTypesReferenced, MatchEventSpec priorMatches, Set<String> priorAllTags) throws ExprValidationException {
if (endpoint instanceof ContextDetailConditionCrontab) {
ContextDetailConditionCrontab crontab = (ContextDetailConditionCrontab) endpoint;
ScheduleSpec schedule = ExprNodeUtility.toCrontabSchedule(ExprNodeOrigin.CONTEXTCONDITION, crontab.getCrontab(), statementContext);
crontab.setSchedule(schedule);
return new ContextDetailMatchPair(crontab, new MatchEventSpec(), new LinkedHashSet<String>());
}
if (endpoint instanceof ContextDetailConditionTimePeriod) {