code: public static JsonObject jsonFromMultimap(MultiMap attributes) {
  		JsonObject json = new JsonObject();
  		if (attributes != null) {
  			for (Map.Entry<String, String> e: attributes.entries()) {
  				json.put(e.getKey(), e.getValue());
  			}
  		}
  		return json;
  	}
docs: TODO improve with type and validation