Buggy code:
public abstract class ExpressionBasedActionHandler extends ProcessorActionHandler { public static final String EXPRESSION_HAS_NOT_BEEN_DEFINED = "Expression<seq2seq4repair_space>has<seq2seq4repair_space>not<seq2seq4repair_space>been<seq2seq4repair_space>defined" ; private static final Logger log = Logger . getLogger ( ExpressionBasedActionHandler . class . getName ( ) ) ; private Object compiledAction = null ; public ExpressionBasedActionHandler ( ProcessorAction action ) { } @ Override public void init ( Processor processor ) { super . init ( processor ) ; if ( ( ( ( org . hawkular . btm . api . model . config . btxn . ExpressionBasedAction ) ( getAction ( ) ) ) . getExpression ( ) ) != null ) { try { ParserContext ctx = new ParserContext ( ) ; <START_BUG> ctx . addPackageImport ( "org.hawkular.btm.client.collector.internal.helpers" ) ; <END_BUG> String text = ( ( org . hawkular . btm . api . model . config . btxn . ExpressionBasedAction ) ( getAction ( ) ) ) . getExpression ( ) . evaluateText ( ) ; compiledAction = MVEL . compileExpression ( text , ctx ) ; if ( ( compiledAction ) == null ) { ExpressionBasedActionHandler . log . severe ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>compile<seq2seq4repair_space>action<seq2seq4repair_space>'" + text ) + "'" ) ) ; } else if ( ExpressionBasedActionHandler . log . isLoggable ( FINE ) ) { ExpressionBasedActionHandler . log . fine ( ( ( ( "Initialised<seq2seq4repair_space>processor<seq2seq4repair_space>action<seq2seq4repair_space>'" + text ) + "'<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( compiledAction ) ) ) ; } if ( ! ( isUsesHeaders ( ) ) ) { setUsesHeaders ( ( ( text . indexOf ( "headers." ) ) != ( - 1 ) ) ) ; } if ( ! ( isUsesContent ( ) ) ) { setUsesContent ( ( ( text . indexOf ( "values[" ) ) != ( - 1 ) ) ) ; } } catch ( Throwable t ) { if ( ExpressionBasedActionHandler . log . isLoggable ( FINE ) ) { ExpressionBasedActionHandler . log . log ( FINE , ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>compile<seq2seq4repair_space>expression<seq2seq4repair_space>for<seq2seq4repair_space>action<seq2seq4repair_space>'" + ( getAction ( ) ) ) + "'" ) , t ) ; } ProcessorIssue pi = new ProcessorIssue ( ) ; pi . setProcessor ( processor . getDescription ( ) ) ; pi . setAction ( getAction ( ) . getDescription ( ) ) ; pi . setField ( "expression" ) ; pi . setSeverity ( Error ) ; pi . setDescription ( t . getMessage ( ) ) ; if ( ( getIssues ( ) ) == null ) { setIssues ( new ArrayList < org . hawkular . btm . api . model . btxn . Issue > ( ) ) ; } getIssues ( ) . add ( pi ) ; } } else { if ( ExpressionBasedActionHandler . log . isLoggable ( FINE ) ) { ExpressionBasedActionHandler . log . fine ( ( "No<seq2seq4repair_space>action<seq2seq4repair_space>expression<seq2seq4repair_space>defined<seq2seq4repair_space>for<seq2seq4repair_space>processor<seq2seq4repair_space>action=<seq2seq4repair_space>" + ( getAction ( ) ) ) ) ; } ProcessorIssue pi = new ProcessorIssue ( ) ; pi . setProcessor ( processor . getDescription ( ) ) ; pi . setAction ( getAction ( ) . getDescription ( ) ) ; pi . setField ( "expression" ) ; pi . setSeverity ( Error ) ; pi . setDescription ( ExpressionBasedActionHandler . EXPRESSION_HAS_NOT_BEEN_DEFINED ) ; if ( ( getIssues ( ) ) == null ) { setIssues ( new ArrayList < org . hawkular . btm . api . model . btxn . Issue > ( ) ) ; } getIssues ( ) . add ( pi ) ; } } protected String getValue ( BusinessTransaction btxn , Node node , Direction direction , Map < String , ? > headers , Object [ ] values ) { } }

Fix:
ctx . addPackageImport ( "org.hawkular.btm.api.internal.actions.helpers" ) ;