public String putAttribute(String key, String value) {HashMap<String, String> newMap = new HashMap<>(attributes);String oldValue = newMap.put(key, value);attributes = Collections.unmodifiableMap(newMap);return oldValue;}

public string PutAttribute(string key, string value){if (attributes == null){attributes = new Dictionary<string, string>();}return attributes[key] = value;}
