Support for jdk5