Java 5 compatibility.