public Optional<ClientContextParamsTrait> getClientContextParams(Shape service) {
        return service.getTrait(ClientContextParamsTrait.class);
    }
Gets the mapping of context parameter names and corresponding {@link ClientContextParamDefinition} to be
generated on the service client's configuration.

@param service The service shape.
@return The mapping of context parameter names to {@link ClientContextParamDefinition}.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/traits/ContextIndex.java