public void build(RuleBuildContext context) {
// pushing consequence LHS into the stack for variable resolution
context.getBuildStack().push( context.getRule().getLhs() );
try {
final DroolsMVELFactory factory = new DroolsMVELFactory( context.getDeclarationResolver().getDeclarations(),
null,
context.getPkg().getGlobals() );
MVELDialect dialect = (MVELDialect) context.getDialect( "mvel" );
// This builder is re-usable in other dialects, so specify by name
factory.setNextFactory( dialect.getStaticMethodImportResolverFactory() );
Dialect.AnalysisResult analysis = dialect.analyzeExpression( context,
context.getRuleDescr(),
(String) context.getRuleDescr().getSalience() );