Very often the insurance plan.
When order applies.
Some employers have forms by which a QMCSO can be executed. If not, a lawyer can draft one.
Like a QDRO, a QMCSO is incorporated into the court order.
See also COBRA.