public static void streamToFile(final InputStream inputStream, final String outputFileName) {
        streamToFile(inputStream, Paths.get(outputFileName));
    }
Take a stream to a file.

@param inputStream    to read and close
@param outputFileName to (over)write and close
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamUtil.java