In my REST service, I've come to the conclusion that while I'm building the response, I'm going to need to know what decision CXF came to in regards to output format. That is, XML vs. JSON.
Previously, I didn't need to care, but I'm generating a HATEOAS URL in the response, and we're considering whether this URL should be unadorned, or whether it should explicitly specify the desired Accept (and Accept-Language) value, by adding a file extension. This definitely means the XML output won't be equivalent to the JSON output, which bothers me at some level, but I don't know if I should care.
