I have a CXF endpoint that is deserializing the XML received in to a POJO (JAXB objects). This is all working just fine for us. Now we had a new requirement come up to take a fragment of the received XML and audit it in a particular way. What seems like the most ideal solution would be to use the setHeader functionality and xpath to grab the particular fragment, however this doesn't seem to work. It looks like because I'm using a POJO endpoing that I can't do this? Is this true or do I have something configured incorrectly? Here's the applicable code fragment and exception I'm getting. Any help would be appreciated. Thanks.
Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.cxf.message.MessageContentsList to the required type: org.w3c.dom.Document with value [org.hl7.v3.PRPAIN201305UV02@4c79ee9e]