TRUNK-4244: SonarQube - Method may fail to clean up stream or resource o...

...n checked exception