if (genericVulnerability == null) {
LOG.warn("Unable to find GenericVulnerability with code " + genericVulnerabilityId);
result = MappingCreateResult.BAD_GENERIC_VULNERABILITY_ID;
} else {
VulnerabilityMap newMap = new VulnerabilityMap();
newMap.setChannelVulnerability(channelVulnerability);
newMap.setGenericVulnerability(genericVulnerability);
channelVulnerability.setVulnerabilityMaps(Arrays.asList(newMap));
channelVulnerability.setUserCreated(true);
channelVulnerabilityDao.saveOrUpdate(channelVulnerability);