Remote Gateway System Name given a TagProvider

Is it possible to discern the Gateway Name for a Remote Tag Provider given a TagProvider Java object?

I need to know this so that I can properly differentiate entries in the sqlth_drv table of a shared historian DB.

See this topic:

Note that the Exchange project linked at the bottom has sample code.

Thank you. The TL;DR for those following along is that I'm following @pturmel's lead and using reflection to retrieve gateway.remoteServerId.address from the RemoteTagProvider object. (For now, at least.)