public void cloudPartitionEventRequest(Subject subject, PartitionEventType eventType, String eventDetail) {
if (!eventType.isCloudPartitionEvent()) {
throw new IllegalArgumentException("Invalid cloud partition event type: " + eventType);
}
PartitionEvent partitionEvent = new PartitionEvent(subject.getName(), eventType, eventDetail,
PartitionEvent.ExecutionStatus.REQUESTED);
entityManager.persist(partitionEvent);
}