use `setDefaults` function instead of `eplaceDefaults` on a resolver object.