[SMX4-1513]add type check to avoid CCE in cxf nmr transport

git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/features/trunk@1513057 13f79535-47bb-0310-9956-ffa450edef68