try with resources (Java 7 ability)