Compliance to jdk 1.6