Program: 124327
Project: 124327
Buggy source:
@Override public void configure(Context context){
  this.context=context;
  Map<String,String> params=context.getParameters();
  producerProps=new Properties();
  for (  String key : params.keySet()) {
    String value=params.get(key).trim();
    key=key.trim();
    if (key.startsWith(Constants.PROPERTY_PREFIX)) {
      key=key.substring(Constants.PROPERTY_PREFIX.length() + 1,key.length());
      producerProps.put(key.trim(),value);
      logger.debug("String_Node_Str" + key + "String_Node_Str"+ value);
    }
  }
  String metaDataExtractorClassName=context.getString(Constants.METADATA_EXTRACTOR);
  if (metaDataExtractorClassName != null) {
    try {
      Class metaDatExtractorClazz=Class.forName(metaDataExtractorClassName.trim());
      Object metaDataExtractorObj=metaDatExtractorClazz.newInstance();
      if (metaDataExtractorObj instanceof MetaDataExtractor) {
        metaDataExtractor=(MetaDataExtractor)metaDataExtractorObj;
      }
 else {
        String errorMsg="String_Node_Str" + "String_Node_Str";
        logger.error(errorMsg);
        throw new IllegalArgumentException(errorMsg);
      }
    }
 catch (    ClassNotFoundException e) {
      String errorMsg="String_Node_Str";
      logger.error(errorMsg,e);
      throw new IllegalArgumentException(errorMsg,e);
    }
catch (    InstantiationException e) {
      String errorMsg="String_Node_Str";
      logger.error(errorMsg,e);
      throw new IllegalArgumentException(errorMsg,e);
    }
catch (    IllegalAccessException e) {
      String errorMsg="String_Node_Str";
      logger.error(errorMsg,e);
      throw new IllegalArgumentException(errorMsg,e);
    }
  }
  if (metaDataExtractor != null) {
    topic=context.getString(Constants.TOPIC,Constants.DEFAULT_TOPIC);
    if (topic.equals(Constants.DEFAULT_TOPIC)) {
      logger.warn("String_Node_Str" + Constants.DEFAULT_TOPIC);
    }
  }
}

Fixed version (ground truth):
@Override public void configure(Context context){
  this.context=context;
  Map<String,String> params=context.getParameters();
  producerProps=new Properties();
  for (  String key : params.keySet()) {
    String value=params.get(key).trim();
    key=key.trim();
    if (key.startsWith(Constants.PROPERTY_PREFIX)) {
      key=key.substring(Constants.PROPERTY_PREFIX.length() + 1,key.length());
      producerProps.put(key.trim(),value);
      logger.debug("String_Node_Str" + key + "String_Node_Str"+ value);
    }
  }
  String metaDataExtractorClassName=context.getString(Constants.METADATA_EXTRACTOR);
  if (metaDataExtractorClassName != null) {
    try {
      Class metaDatExtractorClazz=Class.forName(metaDataExtractorClassName.trim());
      Object metaDataExtractorObj=metaDatExtractorClazz.newInstance();
      if (metaDataExtractorObj instanceof MetaDataExtractor) {
        metaDataExtractor=(MetaDataExtractor)metaDataExtractorObj;
      }
 else {
        String errorMsg="String_Node_Str" + "String_Node_Str";
        logger.error(errorMsg);
        throw new IllegalArgumentException(errorMsg);
      }
    }
 catch (    ClassNotFoundException e) {
      String errorMsg="String_Node_Str";
      logger.error(errorMsg,e);
      throw new IllegalArgumentException(errorMsg,e);
    }
catch (    InstantiationException e) {
      String errorMsg="String_Node_Str";
      logger.error(errorMsg,e);
      throw new IllegalArgumentException(errorMsg,e);
    }
catch (    IllegalAccessException e) {
      String errorMsg="String_Node_Str";
      logger.error(errorMsg,e);
      throw new IllegalArgumentException(errorMsg,e);
    }
  }
  if (metaDataExtractor == null) {
    topic=context.getString(Constants.TOPIC,Constants.DEFAULT_TOPIC);
    if (topic.equals(Constants.DEFAULT_TOPIC)) {
      logger.warn("String_Node_Str" + Constants.DEFAULT_TOPIC);
    }
 else {
      logger.info("String_Node_Str" + topic);
    }
  }
}