final DroolsMVELFactory factory = new DroolsMVELFactory( context.getDeclarationResolver().getDeclarations(),
sourcePattern.getOuterDeclarations(),
context.getPkg().getGlobals() );
factory.setNextFactory( dialect.getStaticMethodImportResolverFactory() );
Accumulator accumulator = null;
Declaration[] declarations = null;
if ( accumDescr.isExternalFunction() ) {
// build an external function executor
final Dialect.AnalysisResult analysis = dialect.analyzeExpression( context,