Change to Java 7 : try-with-resources