- ObjectMapper mapper = new ObjectMapper();\r
- String content = null;\r
- try {\r
- content = mapper.writeValueAsString(msg);\r
- } catch (JsonProcessingException e) {\r
- throw new CorrelationException("Failed to convert the message object to a json string.",\r
- e);\r
- }\r