Deprecate ObjectMapper setter. Introduce constructor accepting the ObjectMapper. Original Pull Request: #2332