if (remoteUUID != null) {
repl.setRemoteUUID(remoteUUID);
}
if (push) {
repl.setCreateTarget(createTarget);
<BUG>}
} else {
repl = db.getActiveReplicator(remote, push);
if (repl == null) {
throw new CouchbaseLiteException("unable to lookup replicator with remote: " + remote,
new Status(Status.NOT_FOUND));
}
}
return repl;</BUG>
}

if (remoteUUID != null) {
repl.setRemoteUUID(remoteUUID);
}
if (push) {
repl.setCreateTarget(createTarget);
}
Replication activeReplicator = db.findActiveReplicator(repl);
return activeReplicator != null ? activeReplicator : repl;
}
