}
}
// Construct the appropriate aggregation service
boolean hasGroupBy = !groupByNodes.isEmpty();
AggregationServiceFactoryDesc aggregationServiceFactory = AggregationServiceFactoryFactory.getService(selectAggregateExprNodes, havingAggregateExprNodes, orderByAggregateExprNodes, hasGroupBy, stmtContext.getMethodResolutionService(), evaluatorContextStmt, statementSpecCompiled.getAnnotations(), stmtContext.getVariableService(), typeService.getEventTypes().length > 1,
statementSpecCompiled.getFilterRootNode(), statementSpecCompiled.getHavingExprRootNode());
boolean useCollatorSort = false;
if (stmtContext.getConfigSnapshot() != null)
{