TRUNK-4244: SonarQube - Method may fail to clean up stream or resource on checked exception