private Map<String, ResponseObject> createResponses(
            Context<T> context,
            HttpBindingIndex bindingIndex,
            EventStreamIndex eventStreamIndex,
            OperationShape operation
    ) {
        Map<String, ResponseObject> result = new TreeMap<>();
        OperationIndex operationIndex = OperationIndex.of(context.getModel());
        StructureShape output = operationIndex.expectOutputShape(operation);
        updateResponsesMapWithResponseStatusAndObject(
                context,
                bindingIndex,
                eventStreamIndex,
                operation,
                output,
                result);

        for (StructureShape error : operationIndex.getErrors(operation)) {
            updateResponsesMapWithResponseStatusAndObject(
                    context,
                    bindingIndex,
                    eventStreamIndex,
                    operation,
                    error,
                    result);
        }
        return result;
    }
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