Program: 115312
Project: 115312
Buggy source:
public ProcessingResultType run(){
  OutputStream out=null;
  try {
    FOUserAgent foUserAgent=fopFactory.newFOUserAgent();
    File outputFile=new File(this.getODMXMLFileName() + "String_Node_Str");
    File xslFile=new File(this.getTransformFileName());
    out=new FileOutputStream(outputFile);
    out=new BufferedOutputStream(out);
    Fop fop=fopFactory.newFop(MimeConstants.MIME_PDF,foUserAgent,out);
    TransformerFactory factory=TransformerFactory.newInstance();
    Transformer transformer=factory.newTransformer();
    Source src=new StreamSource(xslFile);
    Result res=new SAXResult(fop.getDefaultHandler());
    transformer.transform(src,res);
    FormattingResults foResults=fop.getResults();
    java.util.List pageSequences=foResults.getPageSequences();
    for (java.util.Iterator it=pageSequences.iterator(); it.hasNext(); ) {
      PageSequenceResults pageSequenceResults=(PageSequenceResults)it.next();
      System.out.println("String_Node_Str" + (String.valueOf(pageSequenceResults.getID()).length() > 0 ? pageSequenceResults.getID() : "String_Node_Str") + "String_Node_Str"+ pageSequenceResults.getPageCount()+ "String_Node_Str");
    }
    System.out.println("String_Node_Str" + foResults.getPageCount() + "String_Node_Str");
    out.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
    ProcessingResultType resultError=ProcessingResultType.FAIL;
    resultError.setUrl("String_Node_Str");
    resultError.setArchiveMessage("String_Node_Str" + e.getMessage());
    resultError.setDescription("String_Node_Str" + e.getMessage());
    return resultError;
  }
 finally {
  }
  ProcessingResultType resultSuccess=ProcessingResultType.SUCCESS;
  resultSuccess.setUrl(CoreResources.getField("String_Node_Str") + "String_Node_Str");
  resultSuccess.setArchiveMessage("String_Node_Str");
  resultSuccess.setDescription("String_Node_Str");
  return resultSuccess;
}

Fixed version (ground truth):
public ProcessingResultType run(){
  OutputStream out=null;
  try {
    FOUserAgent foUserAgent=fopFactory.newFOUserAgent();
    File outputFile=new File(this.getODMXMLFileName() + "String_Node_Str");
    File xslFile=new File(this.getTransformFileName());
    out=new FileOutputStream(outputFile);
    out=new BufferedOutputStream(out);
    Fop fop=fopFactory.newFop(MimeConstants.MIME_PDF,foUserAgent,out);
    TransformerFactory factory=TransformerFactory.newInstance();
    Transformer transformer=factory.newTransformer();
    Source src=new StreamSource(xslFile);
    Result res=new SAXResult(fop.getDefaultHandler());
    transformer.transform(src,res);
    FormattingResults foResults=fop.getResults();
    java.util.List pageSequences=foResults.getPageSequences();
    for (java.util.Iterator it=pageSequences.iterator(); it.hasNext(); ) {
      PageSequenceResults pageSequenceResults=(PageSequenceResults)it.next();
      System.out.println("String_Node_Str" + (String.valueOf(pageSequenceResults.getID()).length() > 0 ? pageSequenceResults.getID() : "String_Node_Str") + "String_Node_Str"+ pageSequenceResults.getPageCount()+ "String_Node_Str");
    }
    System.out.println("String_Node_Str" + foResults.getPageCount() + "String_Node_Str");
    out.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
    ProcessingResultType resultError=ProcessingResultType.FAIL;
    resultError.setUrl(CoreResources.getField("String_Node_Str") + "String_Node_Str");
    resultError.setArchiveMessage("String_Node_Str" + e.getMessage());
    resultError.setDescription("String_Node_Str" + e.getMessage());
    return resultError;
  }
 finally {
  }
  ProcessingResultType resultSuccess=ProcessingResultType.SUCCESS;
  resultSuccess.setUrl(CoreResources.getField("String_Node_Str") + "String_Node_Str");
  resultSuccess.setArchiveMessage("String_Node_Str");
  resultSuccess.setDescription("String_Node_Str");
  return resultSuccess;
}