Fix compiler error after migration from camel-2.5.0 to camel-2.9.x