How to write a "still alive" desktop application with java Mustang?