|| (event instanceof CharSequence)
|| (event instanceof Boolean)) {
event = String.valueOf(event);
}
event = process(name, event);
OutboundEvent outEvent = new OutboundEvent.Builder()
.name(name)
.mediaType(event instanceof String
? MediaType.TEXT_PLAIN_TYPE
: MediaType.APPLICATION_JSON_TYPE)
.data(event.getClass(), event)