class SerecoFalsePositiveMarker {

    public void markFalsePositives(String projectId, List<SerecoVulnerability> all){
        notEmpty(projectId, "project id may not be null or empty!");
        
        if (all==null || all.isEmpty()) {
            /* no vulnerabilities found*/
            return;
        }
        ScanProjectConfig config = scanProjectConfigService.get(projectId, ScanProjectConfigID.FALSE_POSITIVE_CONFIGURATION,false);
        if (config==null) {
            /* nothing configured */
            return;
        }
        
        String data = config.getData();
        FalsePositiveProjectConfiguration falsePositiveConfig = FalsePositiveProjectConfiguration.fromJSONString(data);
        List<FalsePositiveEntry> falsePositives = falsePositiveConfig.getFalsePositives();
        
        for (SerecoVulnerability vulnerability: all) {
            
            handleVulnereability(falsePositives, vulnerability);
        }
        
    }

}