Adapt to Camel API changes.