Compatibility with Java 5