Compliance with Java 5