Inject the ObjectMapper and copy it to allow customization.