in src/main/java/software/amazon/event/kafkaconnector/EventBridgeResult.java [99:103]
public MappedSinkRecord<T> success() {
if (isFailure())
throw new IllegalStateException("Result is a failure and cannot be accessed as success.");
return (MappedSinkRecord<T>) value;
}