Java 5 setting