JDK7 compatibility