replace set and get in Properties with apply() and apply(T)