5556575859606162636465
// Hence we give 90 seconds max time here. try { Services.getCompletionFuture(controller).get(90, TimeUnit.SECONDS); } finally { // If it timeout, kill the app as cleanup. controller.kill(); } } /** * The handler for testing timeout handling.