@SuppressWarnings("unchecked")
 @Override
 public void markAllOpen(List<Vulnerability> vulns) {
   for (Vulnerability vuln : vulns) {
     if (vuln != null && !vuln.isActive()) {
       vuln.setActive(true);
       vuln.setFoundByScanner(true);
       determineVulnerabilityDefectConsistencyState(vuln);
       saveOrUpdate(vuln);
     }
   }
 }
 @SuppressWarnings("unchecked")
 @Override
 public void markAllClosed(List<Vulnerability> vulns) {
   for (Vulnerability vuln : vulns) {
     if (vuln != null && vuln.isActive()) {
       vuln.setActive(false);
       vuln.setCloseTime(Calendar.getInstance());
       vuln.setFoundByScanner(false);
       determineVulnerabilityDefectConsistencyState(vuln);
       saveOrUpdate(vuln);
     }
   }
 }