import org.drools.verifier.report.components.VerifierMessageBase;
public class VerifierReportCreator {
public static AnalysisReport doReport(VerifierReport report) {
AnalysisReport result = new AnalysisReport();
result.errors = doLines( report.getBySeverity( Severity.ERROR ) );
result.warnings = doLines( report.getBySeverity( Severity.WARNING ) );
result.notes = doLines( report.getBySeverity( Severity.NOTE ) );
result.factUsages = doFactUsage( report.getVerifierData() );