Program: 49234
Project: 49234
Buggy source:
@Override public void withInjector(Injector injector){
  insertValidationEventListeners(injector);
  ResourceLocatorMap map=injector.getInstance(ResourceLocatorMap.class);
  map.init();
  if (config.getBoolean(ConfigProperties.AMQP_INTEGRATION_ENABLED) && !config.getBoolean(ConfigProperties.SUSPEND_MODE_ENABLED)) {
    QpidQmf qmf=injector.getInstance(QpidQmf.class);
    QpidStatus status=qmf.getStatus();
    if (status != QpidStatus.CONNECTED) {
      log.error("String_Node_Str" + "String_Node_Str" + "String_Node_Str",status);
      throw new RuntimeException("String_Node_Str" + status);
    }
  }
  cacheListener=injector.getInstance(CacheContextListener.class);
  cacheListener.contextInitialized(injector);
  if (config.getBoolean(ConfigProperties.AMQP_INTEGRATION_ENABLED) && config.getBoolean(ConfigProperties.SUSPEND_MODE_ENABLED)) {
    SuspendModeTransitioner mw=injector.getInstance(SuspendModeTransitioner.class);
    mw.transitionAppropriately();
    mw.startPeriodicExecutions();
  }
  if (config.getBoolean(HORNETQ_ENABLED)) {
    try {
      hornetqListener=injector.getInstance(HornetqContextListener.class);
      hornetqListener.contextInitialized(injector);
    }
 catch (    Exception e) {
      log.error("String_Node_Str",e);
    }
  }
  if (config.getBoolean(ConfigProperties.CACHE_JMX_STATS)) {
    MBeanServer mBeanServer=ManagementFactory.getPlatformMBeanServer();
    ManagementService.registerMBeans(CacheManager.getInstance(),mBeanServer,true,true,true,true);
  }
  pinsetterListener=injector.getInstance(PinsetterContextListener.class);
  pinsetterListener.contextInitialized();
  loggerListener=injector.getInstance(LoggerContextListener.class);
  ModelConverters.getInstance().addConverter(injector.getInstance(CandlepinSwaggerModelConverter.class));
  this.injector=injector;
}

Fixed version (ground truth):
@Override public void withInjector(Injector injector){
  insertValidationEventListeners(injector);
  ResourceLocatorMap map=injector.getInstance(ResourceLocatorMap.class);
  map.init();
  if (config.getBoolean(ConfigProperties.AMQP_INTEGRATION_ENABLED) && !config.getBoolean(ConfigProperties.SUSPEND_MODE_ENABLED)) {
    QpidQmf qmf=injector.getInstance(QpidQmf.class);
    QpidStatus status=qmf.getStatus();
    if (status != QpidStatus.CONNECTED) {
      log.error("String_Node_Str" + "String_Node_Str" + "String_Node_Str",status);
      throw new RuntimeException("String_Node_Str" + status);
    }
  }
  if (config.getBoolean(ConfigProperties.AMQP_INTEGRATION_ENABLED) && config.getBoolean(ConfigProperties.SUSPEND_MODE_ENABLED)) {
    SuspendModeTransitioner mw=injector.getInstance(SuspendModeTransitioner.class);
    mw.transitionAppropriately();
    mw.startPeriodicExecutions();
  }
  if (config.getBoolean(HORNETQ_ENABLED)) {
    try {
      hornetqListener=injector.getInstance(HornetqContextListener.class);
      hornetqListener.contextInitialized(injector);
    }
 catch (    Exception e) {
      log.error("String_Node_Str",e);
    }
  }
  if (config.getBoolean(ConfigProperties.CACHE_JMX_STATS)) {
    MBeanServer mBeanServer=ManagementFactory.getPlatformMBeanServer();
    ManagementService.registerMBeans(CacheManager.getInstance(),mBeanServer,true,true,true,true);
  }
  pinsetterListener=injector.getInstance(PinsetterContextListener.class);
  pinsetterListener.contextInitialized();
  loggerListener=injector.getInstance(LoggerContextListener.class);
  ModelConverters.getInstance().addConverter(injector.getInstance(CandlepinSwaggerModelConverter.class));
  this.injector=injector;
}