Getting an OpcUaServer reference

I'd like to register some DataType nodes in my own namespace when my module starts.

Is there a supported way to get a reference to the gateway's OpcUaServer? I'm assuming I'd have to reference the OPC UA module from the ModuleManager, either using getModule or resolveClass?

How does something like the BACnet driver handle this?

The only reference to OpcUaServer you get is from a DeviceContext.

The BACnet driver is actually adding an entirely new namespace and it's using private API to do it.

Guess who’s back (back again).
Are there any planned changes to this in 2027?

I have a use case involving non-device use of Ignition’s OPC UA server, and I want to add my own namespace.

ATM the only option I have is creating a “dummy” device to gain a server reference, which is kinda silly.

But supported. That's worth a bunch.