check out the modbus data source in the old mango source code for an example on how to use the modbus4j library

https://sourceforge.net/projects/scadabr/files/Software/mango-src/