Thank you Hillary,
I replaced
thisXDocument.View.ExecuteAction("xCollection::insert", "group12_778")
with
thisXDocument.View.ExecuteAction("xCollection::insertBefore", "group12_778")
I get the error:
The specified bstrAction value for the View.ExecuteAction call is not applicable for the ...