a bit more love for the Java example