JDK6 compatibility