I have a simple REST service built using Apache CXF and Spring. I am making use of the extension mapping stuff to return json or xml depending on the URL (https://.../hello.json etc.). This works very well when JAXB annotated Java classes are returned.I have a simple REST service built using Apache