if (vuln.getScanCloseVulnerabilityMaps() != null) {
if (vuln.getScanCloseVulnerabilityMaps().size() == 1) {
vuln.setCloseTime(null);
} else if (vuln.getScanCloseVulnerabilityMaps().size() > 1) {
ScanCloseVulnerabilityMap closeMap = vuln.getScanCloseVulnerabilityMaps()
.get(vuln.getScanCloseVulnerabilityMaps().size() - 2);
if (closeMap != null && closeMap.getScan() != null &&
closeMap.getScan().getImportTime() != null) {
vuln.setCloseTime(closeMap.getScan().getImportTime());
}
}
}
// TODO else if there are more older maps, change the close time to