Compatibility with Java 6