OutputStream outputStream = Files.newOutputStream(newFile, StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE);
if (this.shouldCompress) {
final GZIPOutputStream compressedOutputStream = new GZIPOutputStream(outputStream);
outputStream = compressedOutputStream;
}
<BUG>this.currentWritableChannel = Channels.newChannel(outputStream);
</BUG>
} catch (final IOException e) {
throw new IllegalStateException("This exception should not have been thrown.", e);
}

OutputStream outputStream = Files.newOutputStream(newFile, StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE);
if (this.shouldCompress) {
final GZIPOutputStream compressedOutputStream = new GZIPOutputStream(outputStream);
outputStream = compressedOutputStream;
}
this.currentChannel = new PooledFileChannel(Channels.newChannel(outputStream));
} catch (final IOException e) {
throw new IllegalStateException("This exception should not have been thrown.", e);
}
