OutputStream installSnapshotStream = null;
if (targetFollower != null) {
- installSnapshotStream = context.newFileBackedOutputStream();
+ installSnapshotStream = context.getFileBackedOutputStreamFactory().newInstance();
log.info("{}: Initiating snapshot capture {} to install on {}",
persistenceId(), captureSnapshot, targetFollower);
} else {