Use the same ObjectMapper in Java and Scala