handle java 1.6