[WAGON-386] build failure with jdk 1.7.