CAMEL-4765: Perfer to use API which takes type paramter over explict type casting. We can do this now Spring 3.0+ is min. Thanks to Babak for the patch.