Program: 185069
Project: 185069
Buggy source:
@Override public void export(CS conversionSettings,OutputStream outputStream) throws Docx4JException {
  PK preprocessedPackage=null;
  ConversionSectionWrappers sectionWrappers=null;
  CC conversionContext=null;
  OutputStream intermediateOutputStream=null;
  long startTime=System.currentTimeMillis();
  long currentTime=startTime;
  Logger log=LocalLog;
  try {
    log.debug("String_Node_Str");
    preprocessedPackage=preprocess(conversionSettings);
    if (preprocessedPackage instanceof WordprocessingMLPackage) {
      log.debug("String_Node_Str" + ((WordprocessingMLPackage)preprocessedPackage).getMainDocumentPart().getXML());
    }
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    sectionWrappers=createWrappers(conversionSettings,preprocessedPackage);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    conversionContext=createContext(conversionSettings,preprocessedPackage,sectionWrappers);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    intermediateOutputStream=createIntermediateOutputStream(outputStream);
    process(conversionSettings,conversionContext,intermediateOutputStream);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    postprocess(conversionSettings,conversionContext,intermediateOutputStream,outputStream);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    if (conversionSettings.getWmlPackage() != preprocessedPackage) {
      if (preprocessedPackage instanceof WordprocessingMLPackage) {
        FontTablePart ftp=((WordprocessingMLPackage)preprocessedPackage).getMainDocumentPart().getFontTablePart();
        if (ftp != null) {
          ftp.deleteEmbeddedFontTempFiles();
        }
      }
    }
    logDebugStep(log,"String_Node_Str",startTime);
  }
 catch (  IllegalArgumentException e) {
    if (e.getMessage().contains("String_Node_Str")) {
      throw new Docx4JException("String_Node_Str",e);
    }
 else {
      throw new Docx4JException("String_Node_Str",e);
    }
  }
catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw new Docx4JException("String_Node_Str",e);
  }
 finally {
    try {
      outputStream.close();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
@Override public void export(CS conversionSettings,OutputStream outputStream) throws Docx4JException {
  PK preprocessedPackage=null;
  ConversionSectionWrappers sectionWrappers=null;
  CC conversionContext=null;
  OutputStream intermediateOutputStream=null;
  long startTime=System.currentTimeMillis();
  long currentTime=startTime;
  Logger log=LocalLog;
  try {
    log.debug("String_Node_Str");
    preprocessedPackage=preprocess(conversionSettings);
    if (preprocessedPackage instanceof WordprocessingMLPackage) {
      log.debug("String_Node_Str" + ((WordprocessingMLPackage)preprocessedPackage).getMainDocumentPart().getXML());
    }
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    sectionWrappers=createWrappers(conversionSettings,preprocessedPackage);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    conversionContext=createContext(conversionSettings,preprocessedPackage,sectionWrappers);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    intermediateOutputStream=createIntermediateOutputStream(outputStream);
    process(conversionSettings,conversionContext,intermediateOutputStream);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    postprocess(conversionSettings,conversionContext,intermediateOutputStream,outputStream);
    currentTime=logDebugStep(log,"String_Node_Str",currentTime);
    if (conversionSettings.getWmlPackage() != preprocessedPackage) {
      if (preprocessedPackage instanceof WordprocessingMLPackage) {
        FontTablePart ftp=((WordprocessingMLPackage)preprocessedPackage).getMainDocumentPart().getFontTablePart();
        if (ftp != null) {
          ftp.deleteEmbeddedFontTempFiles();
        }
      }
    }
    logDebugStep(log,"String_Node_Str",startTime);
  }
 catch (  IllegalArgumentException e) {
    if (e.getMessage().contains("String_Node_Str")) {
      throw new Docx4JException("String_Node_Str",e);
    }
 else {
      throw new Docx4JException("String_Node_Str",e);
    }
  }
catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw new Docx4JException("String_Node_Str",e);
  }
}