Java entities tidyup

- Tidy up imports and formatting in the Java entities support classes
- Fix issue with incorrect boolean check for MXBean status