Add shared document types between territories using java code

I would like to add shared document between territories using java code.
There is a method setTerritoryGatewaySharedEventTypes in BrokerAdminClient class (broker admin API).
However this method doesn’t add simple shared document but SET all documents as new entries.
In result all queues for these document are reset. So when I’m adding single shared document I have to reset all existing shared document.

Do you know a way to add single shared document types between territories not affecting existing shared document types using java code ?

Thanks in advance for reply