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