requireExtractCommandWaitEndpoint

Extracts the command wait endpoint from the message header, throwing an exception if not present.

Return

The wait endpoint.

Throws

if the wait endpoint is not found in the header.