public void addProperty(String key, String value) { RiskRunProperty property = new RiskRunProperty(); property.setRiskRun(this); property.setPropertyKey(key); property.setPropertyValue(value); addProperty(property); }
public Map<String, String> getPropertiesMap() { Map<String, String> returnValue = new HashMap<String, String>(); for (RiskRunProperty property : getProperties()) { returnValue.put(property.getPropertyKey(), property.getPropertyValue()); } return returnValue; }