private String generateWarningsReport(CompilationResult result) {
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
ByteArrayOutputStream errContent = new ByteArrayOutputStream();
CommandLinePrint printer = new CommandLinePrint(new PrintStream(outContent), new PrintStream(errContent));
printer.printWarnings("testCase", lessFile, result);
String completeErrorReport = errContent.toString();
return completeErrorReport;
}