OPCUA driver with Modbus Driver connected by serial port

I have read the example of Ignition-ModuleSDK-7.2.8\example\ModbusDriver-v2. it is a bout modbus TCP.if I want write a OPCUA driver with ModbusDriver connected by serial port,what can I do,thank you very much.

You could probably just create an interface to an existing library that can handle serial like http://jamod.sourceforge.net/

Thanks,I just want to know how the example code of OPCUA driver with Modbus TCP Driver to be adapted for one which is not based on TCP IP.
AbstractNioDriver provides the networking bits and pieces. so | must extend directly from AbstractDriver other than AbstractNioDriver . how can implement the Driver interface to send and receive data?