Putting this here for future reference if someone else stumbles across this:
The reboot functionality can be mirrored by using bash commands from within your Java/python/etc code.
ssh host
shutdown -r now
This will achieve the desired results, however the UI will report slightly differently.
Sandro Bonazzola
MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV