private static void bySeverity(string ozasmtFile, IO2Assessment o2Assessment, int severity, string scanType)
        {
            O2Cmd.log.write("\n> Filtering by {0} \n", scanType);
            var filteredO2Findings = from IO2Finding finding in o2Assessment.o2Findings
                                     where finding.severity == severity
                                     select finding;

            OzasmtLinqUtils.saveFindings(filteredO2Findings, ozasmtFile, scanType);
        }
        private static void byConfidence(string ozasmtFile, IO2Assessment o2Assessment, int confidence, string scanType)
        {
            O2Cmd.log.write("\n> Filtering by {0} \n", scanType);
            var filteredO2Findings = from IO2Finding finding in o2Assessment.o2Findings
                                     where finding.confidence == confidence
                                     select finding;

            OzasmtLinqUtils.saveFindings(filteredO2Findings, ozasmtFile, scanType);
        }
        // function consumed from Ozasmt.UniqueFindings function
        public static void removeDuplicateTypeIIsFromAssessment(IO2Assessment o2Assessment)
        {
            O2Cmd.log.write("\n  Removing duplicate Type II findings");
            var findingsByActionObjectFileAndLineNumber = groupFindingsByActionObjectIdFileNameAndLineNumber(o2Assessment.o2Findings);
            var findingsToRemove = getFindingsToRemove(findingsByActionObjectFileAndLineNumber);

            removeFindingsFromAssessment(o2Assessment, findingsToRemove);
            OzasmtLinqUtils.saveFindings(findingsToRemove, "", "duplicateFindings");
            //new O2Assessment(findingsToRemove).save(new O2AssessmentSave_OunceV6(),ozasmtToSaveDuplicatedFindings);
            O2Cmd.log.write("");
        }
        public static void onlyVulnerabilities(string ozasmtFile)
        {
            IO2Assessment o2Assessment = OzasmtLinqUtils.getO2Assessment(ozasmtFile);

            if (o2Assessment == null)
            {
                return;
            }

            O2Cmd.log.write("#) Executing Filter: : Create assessment with only Findings with Vulnerabilities");
            var filteredO2Findings = from IO2Finding finding in o2Assessment.o2Findings
                                     where finding.confidence == 1
                                     select finding;

            OzasmtLinqUtils.saveFindings(filteredO2Findings, ozasmtFile, "Only Vulnerabilities");
        }