Java7 features implemented (resource handling)