REVIEW: [NEXUS-6015] Review File and stream utility usage in Nexus

https://issues.sonatype.org/browse/NEXUS-6015
https://bamboo.zion.sonatype.com/browse/NX-OSSF13