code: public void setAsObject(String key, Object value) {
  		put(key, StringConverter.toNullableString(value));
  	}
docs: Sets a new value to map element specified by its index. When the index is not
  defined, it resets the entire map value. This method has double purpose
  because method overrides are not supported in JavaScript.
  
  @param key   (optional) a key of the element to set
  @param value a new element or map value.