[KARAF-3182] Fix compilation issue