The above seems to not work for me.
As an example I want to add a component to the Composite Product that is a Variable Product that has 6 color attribute options.
If I attempt to configure the composite product I’m not giving the variable products attribute options.