Keep result compatible with Java 6