class VulnerabilityService implements Constants {

	public List<String> getResourceId(List<Map<String, Object>> vulnerabilityOccuranceList) {
		List<String> resourceIdList = new ArrayList<String>();
		for (Map<String, Object> map : vulnerabilityOccuranceList) {
			for (Map.Entry<String, Object> entry : map.entrySet()) {
				String key = entry.getKey();
				if (key.equals("_resourceid")) {
					String value = entry.getValue().toString();
					resourceIdList.add(value);
				}

			}
		}
		return resourceIdList.stream().distinct().collect(Collectors.toList());
	}

}