ElementVisitEvent visitEvent = (ElementVisitEvent) event;
ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
if(visitEvent.getSequence() == VisitSequence.BEFORE) {
VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
if(reportAnnotation != null) {
return !evalReportCondition(visitEvent, reportAnnotation.condition());
}
} else {
VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
if(reportAnnotation != null) {
return !evalReportCondition(visitEvent, reportAnnotation.condition());