Downport to Java 7