}
else if (format == SnapshotFormat.STREAM) {
plan = new StreamSnapshotWritePlan();
}
else if (format == SnapshotFormat.INDEX) {
plan = new IndexSnapshotWritePlan();
}
else {
throw new RuntimeException("BAD BAD BAD");
}
final Callable<Boolean> deferredSetup = plan.createSetup(file_path, file_nonce, txnId,