CAMEL-7986: Lets be able to compile with java 6 for backport to older branches.