Buggy code:
@ Configuration public class AnnotatorsConfig { private static final Logger LOGGER = LoggerFactory . getLogger ( AnnotatorsConfig . class ) ; public static final String ANNOTATOR_CONFIGURATION_PREFIX = "org.aksw.gerbil.annotators.definition" ; public static final String ANNOTATOR_CACHE_FLAG_SUFFIX = "cacheable" ; public static final String ANNOTATOR_CLASS_SUFFIX = "class" ; public static final String ANNOTATOR_CONSTRUCTOR_ARGS_SUFFIX = "constructorArgs" ; public static final String ANNOTATOR_EXPERIMENT_TYPE_SUFFIX = "experimentType" ; public static final String ANNOTATOR_NAME_SUFFIX = "name" ; public static void main ( String [ ] args ) { } @ Bean public static AdapterList < AnnotatorConfiguration > annotators ( ) { } private static Set < String > getAnnotatorKeys ( ) { } private static AnnotatorConfiguration getConfiguration ( String annotatorKey ) throws ClassNotFoundException , NoSuchMethodException , SecurityException { org . apache . commons . configuration . Configuration config = GerbilConfiguration . getInstance ( ) ; StringBuilder keyBuilder = new StringBuilder ( ) ; String key ; key = AnnotatorsConfig . buildKey ( keyBuilder , annotatorKey , AnnotatorsConfig . ANNOTATOR_NAME_SUFFIX ) ; if ( ! ( config . containsKey ( key ) ) ) { AnnotatorsConfig . LOGGER . error ( ( ( "Couldn\'t<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>\"" + annotatorKey ) + "\"<seq2seq4repair_space>annotator." ) ) ; return null ; } String name = config . getString ( key ) ; key = AnnotatorsConfig . buildKey ( keyBuilder , annotatorKey , AnnotatorsConfig . ANNOTATOR_CLASS_SUFFIX ) ; if ( ! ( config . containsKey ( key ) ) ) { AnnotatorsConfig . LOGGER . error ( ( ( "Couldn\'t<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>class<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>\"" + annotatorKey ) + "\"<seq2seq4repair_space>annotator." ) ) ; return null ; } String classString = config . getString ( key ) ; @ SuppressWarnings ( "unchecked" ) Class < ? extends Annotator > annotatorClass = ( ( Class < ? extends Annotator > ) ( AnnotatorsConfig . class . getClassLoader ( ) . loadClass ( classString ) ) ) ; key = AnnotatorsConfig . buildKey ( keyBuilder , annotatorKey , AnnotatorsConfig . ANNOTATOR_EXPERIMENT_TYPE_SUFFIX ) ; if ( ! ( config . containsKey ( key ) ) ) { <START_BUG> AnnotatorsConfig . LOGGER . error ( ( ( "Couldn\'t<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>class<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>\"" + annotatorKey ) + "\"<seq2seq4repair_space>annotator." ) ) ; <END_BUG> return null ; } String typeString = config . getString ( key ) ; ExperimentType type = ExperimentType . valueOf ( typeString ) ; key = AnnotatorsConfig . buildKey ( keyBuilder , annotatorKey , AnnotatorsConfig . ANNOTATOR_CACHE_FLAG_SUFFIX ) ; boolean cacheable = true ; if ( config . containsKey ( key ) ) { cacheable = config . getBoolean ( key ) ; } key = AnnotatorsConfig . buildKey ( keyBuilder , annotatorKey , AnnotatorsConfig . ANNOTATOR_CONSTRUCTOR_ARGS_SUFFIX ) ; String [ ] constructorArgStrings ; if ( config . containsKey ( key ) ) { constructorArgStrings = config . getStringArray ( key ) ; } else { constructorArgStrings = new String [ 0 ] ; } Object [ ] constructorArgs = new Object [ constructorArgStrings . length ] ; Class < ? > [ ] constructorArgClasses = new Class [ constructorArgStrings . length ] ; for ( int i = 0 ; i < ( constructorArgs . length ) ; ++ i ) { constructorArgs [ i ] = constructorArgStrings [ i ] ; constructorArgClasses [ i ] = String . class ; } Constructor < ? extends Annotator > constructor = annotatorClass . getConstructor ( constructorArgClasses ) ; return new org . aksw . gerbil . annotators . AnnotatorConfigurationImpl ( name , cacheable , constructor , constructorArgs , type ) ; } protected static String buildKey ( StringBuilder keyBuilder , String annotatorKey , String suffix ) { } }

Fix:
AnnotatorsConfig . LOGGER . error ( ( ( "Couldn\'t<seq2seq4repair_space>get<seq2seq4repair_space>an<seq2seq4repair_space>experiment<seq2seq4repair_space>type<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>\"" + annotatorKey ) + "\"<seq2seq4repair_space>annotator." ) ) ;