Get rid of call to a deprecated method.
Get rid of call to a deprecated method.

Use try-with instead and convert to stream/collector.


git-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1823895 13f79535-47bb-0310-9956-ffa450edef68

etnetera/jmeter,etnetera/jmeter,ubikloadpack/jmeter,vherilier/jmeter,ubikloadpack/jmeter,ubikloadpack/jmeter,ubikloadpack/jmeter,vherilier/jmeter,etnetera/jmeter,vherilier/jmeter,etnetera/jmeter,etnetera/jmeter,vherilier/jmeter