JDK7 compatibility.