Low: jboss: add wait_process_exit() to remove redundancy code
Low: jboss: cosmetic changes

- replace tabs with spaces
- improve indentation