Program: 167306
Project: 167306
Buggy source:
private void importProjectConfiguration(String projectVersionId,ImportConfigData importData,ISqlTransaction transaction,String userId){
  List<TableData> existingProjectData=new ArrayList<TableData>();
  initConfigData(existingProjectData,PROJECT_SQL);
  ProjectVersionData data=importData.getProjectVersion(projectVersionId);
  Iterator<String> itr=data.getProjectData().get(PROJECT_IDX).getTableData().keySet().iterator();
  while (itr.hasNext()) {
    String key=itr.next();
    LinkedCaseInsensitiveMap<Object> row=data.getProjectData().get(PROJECT_IDX).getTableData().get(key);
    addConfigData(existingProjectData,PROJECT_SQL,projectVersionId,(String)row.get(PROJECT_SQL[PROJECT_IDX][KEY_COLUMNS]));
  }
  for (int i=0; i <= PROJECT_SQL.length - 1; i++) {
    if (data.projectData.size() > i) {
      TableData importProjectData=data.projectData.get(i);
      try {
        processConfigTableData(importData,existingProjectData.get(i),importProjectData,PROJECT_SQL[i][KEY_COLUMNS],transaction,userId);
      }
 catch (      RuntimeException e) {
        if (importProjectData.getTableName().toLowerCase().endsWith("String_Node_Str")) {
          Collection<LinkedCaseInsensitiveMap<Object>> maps=importProjectData.getTableData().values();
          StringBuilder ids=new StringBuilder();
          for (          LinkedCaseInsensitiveMap<Object> linkedCaseInsensitiveMap : maps) {
            if (ids.length() > 0) {
              ids.append("String_Node_Str");
            }
            ids.append(linkedCaseInsensitiveMap.get("String_Node_Str"));
          }
          throw new MessageException(String.format("String_Node_Str",ids));
        }
 else {
          throw e;
        }
      }
    }
  }
}

Fixed version (ground truth):
private void importProjectConfiguration(String projectVersionId,ImportConfigData importData,ISqlTransaction transaction,String userId){
  List<TableData> existingProjectData=new ArrayList<TableData>();
  initConfigData(existingProjectData,PROJECT_SQL);
  ProjectVersionData data=importData.getProjectVersion(projectVersionId);
  Iterator<String> itr=data.getProjectData().get(PROJECT_IDX).getTableData().keySet().iterator();
  while (itr.hasNext()) {
    String key=itr.next();
    LinkedCaseInsensitiveMap<Object> row=data.getProjectData().get(PROJECT_IDX).getTableData().get(key);
    addConfigData(existingProjectData,PROJECT_SQL,projectVersionId,(String)row.get(PROJECT_SQL[PROJECT_IDX][KEY_COLUMNS]));
  }
  for (int i=0; i < PROJECT_SQL.length; i++) {
    if (data.projectData.size() > i) {
      TableData importProjectData=data.projectData.get(i);
      try {
        processConfigTableData(importData,existingProjectData.get(i),importProjectData,PROJECT_SQL[i][KEY_COLUMNS],transaction,userId);
      }
 catch (      RuntimeException e) {
        if (importProjectData.getTableName().toLowerCase().endsWith("String_Node_Str")) {
          Collection<LinkedCaseInsensitiveMap<Object>> maps=importProjectData.getTableData().values();
          StringBuilder ids=new StringBuilder();
          for (          LinkedCaseInsensitiveMap<Object> linkedCaseInsensitiveMap : maps) {
            if (ids.length() > 0) {
              ids.append("String_Node_Str");
            }
            ids.append(linkedCaseInsensitiveMap.get("String_Node_Str"));
          }
          throw new MessageException(String.format("String_Node_Str",ids));
        }
 else {
          throw e;
        }
      }
    }
  }
}