copy

open override fun copy(): CommandMessage<C>

Creates a copy of this command message with a deep copy of the header. This ensures header modifications don't affect the original message.

Return

A new CommandMessage instance with copied header.