Program: 12438
Project: 12438
Buggy source:
/** 
 * Submit to the SynBioHub.
 * @param id The submission identifier
 * @param version The submission version
 * @param name The submission name
 * @param description The submission description
 * @param citations The pubMedIds for this submission
 * @param collections A comma separated list of collections
 * @param overwrite_merge '0' prevent, '1' overwrite, '2' merge and prevent, '3' merge and overwrite
 * @param document the SBOL document to submit
 * @throws SynBioHubException if there was an error communicating with the SynBioHub
 */
public void submit(String id,String version,String name,String description,String citations,String collections,String overwrite_merge,SBOLDocument document) throws SynBioHubException {
  if (user.equals("String_Node_Str")) {
    Exception e=new Exception("String_Node_Str");
    throw new SynBioHubException(e);
  }
  String url=backendUrl + "String_Node_Str";
  HttpPost request=new HttpPost(url);
  request.setHeader("String_Node_Str",user);
  request.setHeader("String_Node_Str","String_Node_Str");
  MultipartEntityBuilder params=MultipartEntityBuilder.create();
  params.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
  params.addTextBody("String_Node_Str",id);
  params.addTextBody("String_Node_Str",version);
  params.addTextBody("String_Node_Str",name);
  params.addTextBody("String_Node_Str",description);
  params.addTextBody("String_Node_Str",citations);
  params.addTextBody("String_Node_Str",collections);
  params.addTextBody("String_Node_Str",overwrite_merge);
  params.addTextBody("String_Node_Str",user);
  if (document != null) {
    params.addTextBody("String_Node_Str",serializeDocument(document));
  }
 else {
    params.addTextBody("String_Node_Str","String_Node_Str");
  }
  try {
    request.setEntity(params.build());
    HttpResponse response=client.execute(request);
    checkResponseCode(response);
  }
 catch (  Exception e) {
    throw new SynBioHubException(e);
  }
 finally {
    request.releaseConnection();
  }
}

Fixed version (ground truth):
/** 
 * Submit to the SynBioHub.
 * @param id The submission identifier
 * @param version The submission version
 * @param name The submission name
 * @param description The submission description
 * @param citations The pubMedIds for this submission
 * @param collections A comma separated list of collections
 * @param overwrite_merge '0' prevent, '1' overwrite, '2' merge and prevent, '3' merge and overwrite
 * @param document the SBOL document to submit
 * @throws SynBioHubException if there was an error communicating with the SynBioHub
 */
public void submit(String id,String version,String name,String description,String citations,String collections,String overwrite_merge,SBOLDocument document) throws SynBioHubException {
  if (user.equals("String_Node_Str")) {
    Exception e=new Exception("String_Node_Str");
    throw new SynBioHubException(e);
  }
  String url=backendUrl + "String_Node_Str";
  HttpPost request=new HttpPost(url);
  request.setHeader("String_Node_Str",user);
  request.setHeader("String_Node_Str","String_Node_Str");
  MultipartEntityBuilder params=MultipartEntityBuilder.create();
  params.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
  params.addTextBody("String_Node_Str",id);
  params.addTextBody("String_Node_Str",version);
  params.addTextBody("String_Node_Str",name);
  params.addTextBody("String_Node_Str",description);
  params.addTextBody("String_Node_Str",citations);
  params.addTextBody("String_Node_Str",collections);
  params.addTextBody("String_Node_Str",overwrite_merge);
  params.addTextBody("String_Node_Str",user);
  if (document != null) {
    InputStream stream=new ByteArrayInputStream(serializeDocument(document).getBytes());
    params.addBinaryBody("String_Node_Str",stream,ContentType.APPLICATION_XML,"String_Node_Str");
  }
 else {
    params.addTextBody("String_Node_Str","String_Node_Str");
  }
  try {
    request.setEntity(params.build());
    HttpResponse response=client.execute(request);
    checkResponseCode(response);
  }
 catch (  Exception e) {
    throw new SynBioHubException(e);
  }
 finally {
    request.releaseConnection();
  }
}