refine
Refine code via Java 7 try-with-resources
Refine code via Java 7 NIO.2 API