JRE1.7 compatibility