try {
final StreamCSVOutputProcessor target = new StreamCSVOutputProcessor( outputStream );
final StreamReportProcessor reportProcessor = new StreamReportProcessor( report, target );
final int yieldRate = getYieldRate();
if ( yieldRate > 0 ) {
reportProcessor.addReportProgressListener( new YieldReportListener( yieldRate ) );
}
reportProcessor.processReport();
reportProcessor.close();
outputStream.flush();