[CAMEL-11564]avoid ClassCastException when the gzip is enabled for the cxf endpoint with camel destination

(cherry picked from commit d154650b293b8158de8cb7a19c4fcbc25ba67130)
(cherry picked from commit 3a738454069a1bdbeb02df2a55aa6855a48296e2)
(cherry picked from commit d4d985294a610750e60d804dcedd3a81083ba055)
3 files changed