code: public void setMap(Map<String, Object> map) {
          eventMap.clear();
          eventMap.putAll(map);
      }
docs: Replace the entire event with the keys/values in the provided Map.
  All existing keys/values will be lost.
  
  @param map