Ensure java 6 compatibility.