SES-1790 : Use try-with-resources in GroupIterator.buildEntries