Program: 115086
Project: 115086
Buggy source:
public void run(String dbName,ResourceLoader resourceLoader){
  HashMap fileList=new HashMap();
  CacheManager cacheManager=new CacheManager();
  try {
    if (resourceLoader != null && cacheManager != null)     cacheManager=cacheManager.create(resourceLoader.getResource("String_Node_Str").getInputStream());
  }
 catch (  CacheException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  EhCacheWrapper ehCache=new EhCacheWrapper("String_Node_Str",cacheManager);
  setEhCacheWrapper(ehCache);
  if ("String_Node_Str".equals(dbName)) {
    fileList.put(this.DAO_USERACCOUNT,"String_Node_Str");
    fileList.put(this.DAO_ARCHIVED_DATASET_FILE,"String_Node_Str");
    fileList.put(this.DAO_STUDY,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENTDEFNITION,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENT,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUP,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUPCLASS,"String_Node_Str");
    fileList.put(this.DAO_STUDYSUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECTGROUPMAP,"String_Node_Str");
    fileList.put(this.DAO_EVENTDEFINITIONCRF,"String_Node_Str");
    fileList.put(this.DAO_AUDITEVENT,"String_Node_Str");
    fileList.put(this.DAO_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_ITEM,"String_Node_Str");
    fileList.put(this.DAO_ITEMDATA,"String_Node_Str");
    fileList.put(this.DAO_CRF,"String_Node_Str");
    fileList.put(this.DAO_CRFVERSION,"String_Node_Str");
    fileList.put(this.DAO_DATASET,"String_Node_Str");
    fileList.put(this.DAO_SECTION,"String_Node_Str");
    fileList.put(this.DAO_FILTER,"String_Node_Str");
    fileList.put(this.DAO_MASKING,"String_Node_Str");
    fileList.put(this.DAO_EVENTCRF,"String_Node_Str");
    fileList.put(this.DAO_ITEMFORMMETADATA,"String_Node_Str");
    fileList.put(this.DAO_DISCREPANCY_NOTE,"String_Node_Str");
    fileList.put(this.DAO_STUDY_PARAMETER,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP_METADATA,"String_Node_Str");
    fileList.put(this.DAO_RULESET,"String_Node_Str");
    fileList.put(this.DAO_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULE_ACTION,"String_Node_Str");
    fileList.put(this.DAO_EXPRESSION,"String_Node_Str");
    fileList.put(this.DAO_RULESET_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULESET_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_RULESETRULE_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_ODM_EXTRACT,"String_Node_Str");
  }
 else   if ("String_Node_Str".equals(dbName)) {
    fileList.put(this.DAO_USERACCOUNT,"String_Node_Str");
    fileList.put(this.DAO_ARCHIVED_DATASET_FILE,"String_Node_Str");
    fileList.put(this.DAO_STUDY,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENTDEFNITION,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENT,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUP,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUPCLASS,"String_Node_Str");
    fileList.put(this.DAO_STUDYSUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECTGROUPMAP,"String_Node_Str");
    fileList.put(this.DAO_EVENTDEFINITIONCRF,"String_Node_Str");
    fileList.put(this.DAO_AUDITEVENT,"String_Node_Str");
    fileList.put(this.DAO_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_ITEM,"String_Node_Str");
    fileList.put(this.DAO_ITEMDATA,"String_Node_Str");
    fileList.put(this.DAO_CRF,"String_Node_Str");
    fileList.put(this.DAO_CRFVERSION,"String_Node_Str");
    fileList.put(this.DAO_DATASET,"String_Node_Str");
    fileList.put(this.DAO_SECTION,"String_Node_Str");
    fileList.put(this.DAO_FILTER,"String_Node_Str");
    fileList.put(this.DAO_MASKING,"String_Node_Str");
    fileList.put(this.DAO_EVENTCRF,"String_Node_Str");
    fileList.put(this.DAO_ITEMFORMMETADATA,"String_Node_Str");
    fileList.put(this.DAO_DISCREPANCY_NOTE,"String_Node_Str");
    fileList.put(this.DAO_STUDY_PARAMETER,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP_METADATA,"String_Node_Str");
    fileList.put(this.DAO_RULESET,"String_Node_Str");
    fileList.put(this.DAO_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULE_ACTION,"String_Node_Str");
    fileList.put(this.DAO_EXPRESSION,"String_Node_Str");
    fileList.put(this.DAO_RULESET_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULESET_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_RULESETRULE_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECTTRANSFER,"String_Node_Str");
    fileList.put(this.DAO_ODM_EXTRACT,"String_Node_Str");
  }
 else {
  }
  Set DAONames=fileList.keySet();
  Iterator DAONamesIt=DAONames.iterator();
  while (DAONamesIt.hasNext()) {
    String DAOName=(String)DAONamesIt.next();
    String DAOFileName=(String)fileList.get(DAOName);
    DAODigester newDaoDigester=new DAODigester();
    try {
      if (System.getProperty("String_Node_Str") == null) {
        String path=this.getClass().getClassLoader().getResource("String_Node_Str").getPath().toString().replace("String_Node_Str","String_Node_Str");
        System.out.println("String_Node_Str" + path);
        newDaoDigester.setInputStream(new FileInputStream(path + DAOFileName));
      }
 else {
        String path=CoreResources.PROPERTIES_DIR;
        newDaoDigester.setInputStream(resourceLoader.getResource("String_Node_Str" + DAOFileName).getInputStream());
      }
      try {
        newDaoDigester.run();
        digesters.put(DAOName,newDaoDigester);
      }
 catch (      SAXException saxe) {
        saxe.printStackTrace();
      }
    }
 catch (    IOException ioe) {
      ioe.printStackTrace();
    }
  }
}

Fixed version (ground truth):
public void run(String dbName,ResourceLoader resourceLoader){
  HashMap fileList=new HashMap();
  CacheManager cacheManager=new CacheManager();
  try {
    if (resourceLoader != null && cacheManager != null)     cacheManager=cacheManager.create(resourceLoader.getResource("String_Node_Str").getInputStream());
  }
 catch (  CacheException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  EhCacheWrapper ehCache=new EhCacheWrapper("String_Node_Str",cacheManager);
  setEhCacheWrapper(ehCache);
  if ("String_Node_Str".equals(dbName)) {
    fileList.put(this.DAO_USERACCOUNT,"String_Node_Str");
    fileList.put(this.DAO_ARCHIVED_DATASET_FILE,"String_Node_Str");
    fileList.put(this.DAO_STUDY,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENTDEFNITION,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENT,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUP,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUPCLASS,"String_Node_Str");
    fileList.put(this.DAO_STUDYSUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECTGROUPMAP,"String_Node_Str");
    fileList.put(this.DAO_EVENTDEFINITIONCRF,"String_Node_Str");
    fileList.put(this.DAO_AUDITEVENT,"String_Node_Str");
    fileList.put(this.DAO_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_ITEM,"String_Node_Str");
    fileList.put(this.DAO_ITEMDATA,"String_Node_Str");
    fileList.put(this.DAO_CRF,"String_Node_Str");
    fileList.put(this.DAO_CRFVERSION,"String_Node_Str");
    fileList.put(this.DAO_DATASET,"String_Node_Str");
    fileList.put(this.DAO_SECTION,"String_Node_Str");
    fileList.put(this.DAO_FILTER,"String_Node_Str");
    fileList.put(this.DAO_MASKING,"String_Node_Str");
    fileList.put(this.DAO_EVENTCRF,"String_Node_Str");
    fileList.put(this.DAO_ITEMFORMMETADATA,"String_Node_Str");
    fileList.put(this.DAO_DISCREPANCY_NOTE,"String_Node_Str");
    fileList.put(this.DAO_STUDY_PARAMETER,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP_METADATA,"String_Node_Str");
    fileList.put(this.DAO_RULESET,"String_Node_Str");
    fileList.put(this.DAO_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULE_ACTION,"String_Node_Str");
    fileList.put(this.DAO_EXPRESSION,"String_Node_Str");
    fileList.put(this.DAO_RULESET_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULESET_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_RULESETRULE_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_ODM_EXTRACT,"String_Node_Str");
  }
 else   if ("String_Node_Str".equals(dbName)) {
    fileList.put(this.DAO_USERACCOUNT,"String_Node_Str");
    fileList.put(this.DAO_ARCHIVED_DATASET_FILE,"String_Node_Str");
    fileList.put(this.DAO_STUDY,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENTDEFNITION,"String_Node_Str");
    fileList.put(this.DAO_STUDYEVENT,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUP,"String_Node_Str");
    fileList.put(this.DAO_STUDYGROUPCLASS,"String_Node_Str");
    fileList.put(this.DAO_STUDYSUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECTGROUPMAP,"String_Node_Str");
    fileList.put(this.DAO_EVENTDEFINITIONCRF,"String_Node_Str");
    fileList.put(this.DAO_AUDITEVENT,"String_Node_Str");
    fileList.put(this.DAO_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_ITEM,"String_Node_Str");
    fileList.put(this.DAO_ITEMDATA,"String_Node_Str");
    fileList.put(this.DAO_CRF,"String_Node_Str");
    fileList.put(this.DAO_CRFVERSION,"String_Node_Str");
    fileList.put(this.DAO_DATASET,"String_Node_Str");
    fileList.put(this.DAO_SECTION,"String_Node_Str");
    fileList.put(this.DAO_FILTER,"String_Node_Str");
    fileList.put(this.DAO_MASKING,"String_Node_Str");
    fileList.put(this.DAO_EVENTCRF,"String_Node_Str");
    fileList.put(this.DAO_ITEMFORMMETADATA,"String_Node_Str");
    fileList.put(this.DAO_DISCREPANCY_NOTE,"String_Node_Str");
    fileList.put(this.DAO_STUDY_PARAMETER,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP,"String_Node_Str");
    fileList.put(this.DAO_ITEM_GROUP_METADATA,"String_Node_Str");
    fileList.put(this.DAO_RULESET,"String_Node_Str");
    fileList.put(this.DAO_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULE_ACTION,"String_Node_Str");
    fileList.put(this.DAO_EXPRESSION,"String_Node_Str");
    fileList.put(this.DAO_RULESET_RULE,"String_Node_Str");
    fileList.put(this.DAO_RULESET_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_RULESETRULE_AUDIT,"String_Node_Str");
    fileList.put(this.DAO_SUBJECTTRANSFER,"String_Node_Str");
    fileList.put(this.DAO_ODM_EXTRACT,"String_Node_Str");
  }
 else {
  }
  Set DAONames=fileList.keySet();
  Iterator DAONamesIt=DAONames.iterator();
  while (DAONamesIt.hasNext()) {
    String DAOName=(String)DAONamesIt.next();
    String DAOFileName=(String)fileList.get(DAOName);
    DAODigester newDaoDigester=new DAODigester();
    try {
      if (System.getProperty("String_Node_Str") == null) {
        String path=getPropertiesDir();
        newDaoDigester.setInputStream(new FileInputStream(path + DAOFileName));
      }
 else {
        String path=CoreResources.PROPERTIES_DIR;
        newDaoDigester.setInputStream(resourceLoader.getResource("String_Node_Str" + DAOFileName).getInputStream());
      }
      try {
        newDaoDigester.run();
        digesters.put(DAOName,newDaoDigester);
      }
 catch (      SAXException saxe) {
        saxe.printStackTrace();
      }
    }
 catch (    IOException ioe) {
      ioe.printStackTrace();
    }
  }
}