if ( !isTempReportGenerated() )
{
throw new MavenReportException( "Can't process temp ncss xml file." );
}
// parse the freshly generated file and write the report
final NcssReportGenerator reportGenerator = new NcssReportGenerator( getSink(), getBundle(), getLog() );
reportGenerator.doReport( loadDocument(),
lineThreshold );
}