code: public void setProperties(Map<String, Object> properties)
      {
          this.properties.clear();
          this.properties.putAll(properties);
      }
docs: Replace existing properties with provided properties.
  
  @param properties the properties