Program: 48602
Project: 48602
Buggy source:
public synchronized void loadSoftwareManagers(){
  AppManagerAdd appManagerAdd;
  if (appManagerService.findAppManagerByName(Constants.IRONFAN) == null) {
    appManagerAdd=new AppManagerAdd();
    appManagerAdd.setName(Constants.IRONFAN);
    appManagerAdd.setDescription(Constants.IRONFAN_DESCRIPTION);
    appManagerAdd.setType(Constants.IRONFAN);
    appManagerAdd.setUrl("String_Node_Str");
    appManagerAdd.setUsername("String_Node_Str");
    appManagerAdd.setPassword("String_Node_Str");
    appManagerAdd.setSslCertificate("String_Node_Str");
    appManagerService.addAppManager(appManagerAdd);
  }
  SoftwareManager ironfanSoftwareManager=new DefaultSoftwareManagerImpl();
  cache.put(Constants.IRONFAN,ironfanSoftwareManager);
  List<AppManagerEntity> appManagers=appManagerService.findAll();
  for (  AppManagerEntity appManager : appManagers) {
    if (!appManager.getName().equals(Constants.IRONFAN)) {
      appManagerAdd=new AppManagerAdd();
      appManagerAdd.setName(appManager.getName());
      appManagerAdd.setDescription(appManager.getDescription());
      appManagerAdd.setType(appManager.getType());
      appManagerAdd.setUrl(appManager.getUrl());
      appManagerAdd.setUsername(appManager.getUsername());
      appManagerAdd.setPassword(appManager.getPassword());
      appManagerAdd.setSslCertificate(appManager.getSslCertificate());
      try {
        loadSoftwareManager(appManagerAdd);
      }
 catch (      SoftwareManagerCollectorException e) {
        logger.error("String_Node_Str" + appManagerAdd,e);
      }
    }
  }
}

Fixed version (ground truth):
public synchronized void loadSoftwareManagers(){
  AppManagerAdd appManagerAdd;
  if (appManagerService.findAppManagerByName(Constants.IRONFAN) == null) {
    appManagerAdd=new AppManagerAdd();
    appManagerAdd.setName(Constants.IRONFAN);
    appManagerAdd.setDescription(Constants.IRONFAN_DESCRIPTION);
    appManagerAdd.setType(Constants.IRONFAN);
    appManagerAdd.setUrl("String_Node_Str");
    appManagerAdd.setUsername("String_Node_Str");
    appManagerAdd.setPassword("String_Node_Str");
    appManagerAdd.setSslCertificate("String_Node_Str");
    appManagerService.addAppManager(appManagerAdd);
  }
  SoftwareManager ironfanSoftwareManager=new DefaultSoftwareManagerImpl();
  cache.put(Constants.IRONFAN,ironfanSoftwareManager);
  List<AppManagerEntity> appManagers=appManagerService.findAll();
  for (  AppManagerEntity appManager : appManagers) {
    if (!appManager.getName().equals(Constants.IRONFAN)) {
      appManagerAdd=new AppManagerAdd();
      appManagerAdd.setName(appManager.getName());
      appManagerAdd.setDescription(appManager.getDescription());
      appManagerAdd.setType(appManager.getType());
      appManagerAdd.setUrl(appManager.getUrl());
      appManagerAdd.setUsername(appManager.getUsername());
      appManagerAdd.setPassword(appManager.getPassword());
      appManagerAdd.setSslCertificate(appManager.getSslCertificate());
      try {
        SoftwareManager softwareManager=loadSoftwareManager(appManagerAdd);
        cache.put(appManager.getName(),softwareManager);
      }
 catch (      SoftwareManagerCollectorException e) {
        logger.error("String_Node_Str" + appManagerAdd,e);
      }
    }
  }
}