partitionIdSet.add(PartitionId.from(optValues[i]));
}
ParticipantAccessor accessor = participantAccessor(clusterName);
if (enabled) {
accessor.enablePartitionsForParticipant(participantId, resourceId, partitionIdSet);
} else {
accessor.disablePartitionsForParticipant(participantId, resourceId, partitionIdSet);
}
}