macosxApplication.addApplicationListener(new ApplicationAdapter() {
@Override
public void handleQuit(ApplicationEvent ev) {
handleAction(new Runnable() {
public void run() {
defaultController.exit();
}
});
if (homeApplication.getHomes().isEmpty()) {
System.exit(0);
}