'Internal utility function to find all occurrences of a vuln
into the global collection of vulns found by the plugin.
@param vuln_desc: Vulnerability description.
@return: List of response ID for which the vuln is found.'

def _find_occurrences(self, vuln_desc):

    list_resp_id = []
    if ((vuln_desc is None) or (vuln_desc.strip() == '')):
        return list_resp_id
    ref = vuln_desc.lower().strip()
    for vuln_store_item in self._vulns:
        for (csp_directive_name, csp_vulns_list) in vuln_store_item.csp_vulns.iteritems():
            for csp_vuln in csp_vulns_list:
                if (csp_vuln.desc.strip().lower() == ref):
                    if (vuln_store_item.resp_id not in list_resp_id):
                        list_resp_id.append(vuln_store_item.resp_id)
    return list_resp_id
