PlugInProjectionExpression node = (PlugInProjectionExpression) expr;
// first try the configured aggregation
try
{
AggregationFunctionFactory aggregationFactory = mapContext.getEngineImportService().resolveAggregationFactory(node.getFunctionName());
return new ExprPlugInAggFunctionFactoryNode(node.isDistinct(), aggregationFactory, node.getFunctionName());
}
catch (Exception e)
{
// then try the builtin aggregation