Use properties, mutate, setProperties(...) instead of obsolete putProperties(...).