<BUG>System.out.println(stressTestResults.toString());} catch (Exception ex) {</BUG><CONTEXT>stressTestResults.addThreadResults(threadResults.get());}}stressTestResults.addTotalExecutionTime(totalTime);System.out.println("\r ");<extra_id_0>System.err.println("\nAn error has occurred while running the stress test: " + ex.getMessage());returnCode = 1;} finally {</CONTEXT>
if (outputResultFile != null) {OIOUtils.writeFile(new File(outputResultFile), OJsonResultsFormatter.format(stressTestResults));} catch (Exception ex) {