This intention wraps locals variable of AutoCloseable type into try-with-resources statement.