private Message createMessage(HelixManager manager, ResourceId resourceId,
PartitionId partitionId, ParticipantId participantId, State currentState, State nextState,
SessionId participantSessionId, StateModelDefId stateModelDefId,
StateModelFactoryId stateModelFactoryId, int bucketSize) {
MessageId uuid = MessageId.from(UUID.randomUUID().toString());
Message message = new Message(MessageType.STATE_TRANSITION, uuid);
message.setSrcName(manager.getInstanceName());
message.setTgtName(participantId.stringify());
message.setMsgState(MessageState.NEW);
message.setPartitionId(partitionId);