class VulnerabilityService implements Constants {

	public List<Map<String, Object>> getVulnerabilityDetailsByResourceId(String instanceId) {

		List<Map<String, Object>> vulnerabilitiesDetails = new ArrayList<>();
		try {
			List<Map<String, Object>> vulnerabilitiesDetailsList = vulnerabilityRepository
					.getVulnerabilityDetailsByResourceId(instanceId);
			vulnerabilitiesDetails = formVulnerabilitiesData(vulnerabilitiesDetailsList, new HashMap<String, Long>());
		} catch (Exception e) {
			logger.error("Error in getVulnerabilitiesDetails ", e);
			throw e;
		}

		return vulnerabilitiesDetails;
	}

}