private static Cause[] doCauses(Collection<org.drools.verifier.report.components.Cause> causes) {
ArrayList<Cause> results = new ArrayList<Cause>();
for ( org.drools.verifier.report.components.Cause cause : causes ) {
Cause result = new Cause( cause.toString(),
doCauses( cause.getCauses() ) );
results.add( result );
}
return results.toArray( new Cause[results.size()] );