@Override
    public OperationObject postProcessOperation(
            Context<? extends Trait> context,
            OperationShape shape,
            OperationObject operation,
            String method,
            String path
    ) {
        return context.getService()
                .getTrait(CorsTrait.class)
                .map(trait -> addCorsHeadersToResponses(context, shape, operation, method, trait))
                .orElse(operation);
    }
Adds CORS-specific headers to every response in the API.

<p>Values will be provided for the headers added to each operation by updating
the API Gateway integration of each operation to provide a static value for
each CORS header. This mapping is performed in {@link AddIntegrations}.

<p>This extension only takes effect if the service being converted to
OpenAPI has the CORS trait.
smithy-aws-apigateway-openapi/src/main/java/software/amazon/smithy/aws/apigateway/openapi/AddCorsResponseHeaders.java