chore(build): ensure java 6 compatibility

related to #CAM-3181