// start the specified participant
HelixParticipant helixParticipant =
connection.createParticipant(clusterId, participant.getId());
helixParticipant.getStateMachineEngine().registerStateModelFactory(
lockUnlock.getStateModelDefId(), new LockUnlockFactory());
helixParticipant.startAsync();
// start another participant via auto join
HelixParticipant autoJoinParticipant =
connection.createParticipant(clusterId, ParticipantId.from("localhost_12120"));
autoJoinParticipant.getStateMachineEngine().registerStateModelFactory(