Program: 148540
Project: 148540
Buggy source:
private void importClusterContents(TreeObject item,XtentisPort port){
  if (dataClusterContent.containsKey(item.getDisplayName())) {
    FileReader reader=null;
    String[] paths=dataClusterContent.get(item.getDisplayName());
    Map<String,List<String>> conceptMap=new HashMap<String,List<String>>();
    for (int i=0; i < paths.length; i++) {
      try {
        String path=paths[i];
        reader=new FileReader(importFolder + "String_Node_Str" + path);
        WSItem wsItem=(WSItem)Unmarshaller.unmarshal(WSItem.class,reader);
        String key=wsItem.getWsDataClusterPK().getPk() + "String_Node_Str" + wsItem.getConceptName()+ "String_Node_Str"+ wsItem.getDataModelName();
        List<String> list=new ArrayList<String>();
        if (!conceptMap.containsKey(key)) {
          conceptMap.put(key,list);
        }
 else {
          list=conceptMap.get(key);
        }
        list.add(wsItem.getContent());
      }
 catch (      Exception e1) {
        e1.printStackTrace();
      }
 finally {
        try {
          if (reader != null)           reader.close();
        }
 catch (        Exception e) {
        }
      }
    }
    String url=item.getEndpointIpAddress() + "String_Node_Str";
    for (    Entry<String,List<String>> entry : conceptMap.entrySet()) {
      String[] keys=entry.getKey().split("String_Node_Str");
      String cluster=keys[0];
      String concept=keys[1];
      String datamodel=keys[2];
      BulkloadClient bulkloadClient=new BulkloadClient(url,item.getUsername(),item.getPassword(),null,cluster,concept,datamodel);
      bulkloadClient.setOptions(new BulkloadOptions(false,false,500));
      try {
        bulkloadClient.load(entry.getValue());
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
    }
  }
}

Fixed version (ground truth):
private void importClusterContents(TreeObject item,XtentisPort port){
  if (dataClusterContent.containsKey(item.getDisplayName())) {
    Reader reader=null;
    String[] paths=dataClusterContent.get(item.getDisplayName());
    Map<String,List<String>> conceptMap=new HashMap<String,List<String>>();
    for (int i=0; i < paths.length; i++) {
      try {
        String path=paths[i];
        reader=new InputStreamReader(new FileInputStream(importFolder + "String_Node_Str" + path),"String_Node_Str");
        WSItem wsItem=(WSItem)Unmarshaller.unmarshal(WSItem.class,reader);
        String key=wsItem.getWsDataClusterPK().getPk() + "String_Node_Str" + wsItem.getConceptName()+ "String_Node_Str"+ wsItem.getDataModelName();
        List<String> list=new ArrayList<String>();
        if (!conceptMap.containsKey(key)) {
          conceptMap.put(key,list);
        }
 else {
          list=conceptMap.get(key);
        }
        list.add(wsItem.getContent());
      }
 catch (      Exception e1) {
        e1.printStackTrace();
      }
 finally {
        try {
          if (reader != null)           reader.close();
        }
 catch (        Exception e) {
        }
      }
    }
    String url=item.getEndpointIpAddress() + "String_Node_Str";
    for (    Entry<String,List<String>> entry : conceptMap.entrySet()) {
      String[] keys=entry.getKey().split("String_Node_Str");
      String cluster=keys[0];
      String concept=keys[1];
      String datamodel=keys[2];
      BulkloadClient bulkloadClient=new BulkloadClient(url,item.getUsername(),item.getPassword(),null,cluster,concept,datamodel);
      bulkloadClient.setOptions(new BulkloadOptions(false,false,500));
      try {
        bulkloadClient.load(entry.getValue());
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
    }
  }
}