if (factory == null) {
factory = (PlugInAggregationMultiFunctionFactory) JavaClassHelper.instantiate(PlugInAggregationMultiFunctionFactory.class, config.getMultiFunctionFactoryClassName());
plugInAggregations.getMap().put(config, factory);
}
factory.addAggregationFunction(new PlugInAggregationMultiFunctionDeclarationContext(functionName.toLowerCase(), distinct, engineURI, config));
return new ExprPlugInAggMultiFunctionNode(distinct, config, factory, functionName);
}
// try built-in expanded set of aggregation functions
return engineImportService.resolveAggExtendedBuiltin(functionName, distinct);
}