Maintain compatibility with Java 6