private MediaTypeObject getMediaTypeObject(
            Context<T> context,
            Schema schema,
            Shape shape,
            Function<Shape, String> createSynthesizedName
    ) {
        if (!schema.getType().isPresent() && schema.getRef().isPresent()) {
            return MediaTypeObject.builder()
                    .schema(Schema.builder().ref(schema.getRef().get()).build())
                    .build();
        } else {
            String synthesizedName = createSynthesizedName.apply(shape);
            String pointer = context.putSynthesizedSchema(synthesizedName, schema);
            return MediaTypeObject.builder()
                    .schema(Schema.builder().ref(pointer).build())
                    .build();
        }
    }
Gets the media type of an event stream for the protocol.

<p>By default, this method returns the binary AWS event stream
media type, {@code application/vnd.amazon.eventstream}.

@param context Conversion context.
@param info Event stream info to provide the media type for.
@return Returns the media type of the event stream.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/protocols/AbstractRestProtocol.java