use camel 2.14.2  to compile successfully.
use JavaSE6 syntax.
improved how to detect the type of body object