Revert a1cc85161050349ade0c119ca4278da56f32f43f that was done for JDK 1.5 compatibility for 5.3.8 release. The issue is that current versions of library dependencies (kaptcha, selenium) have already stopped supporting jdk 1.5