executorService.submit(new Runnable() {
@Override
public void run() {
try {
Thread.currentThread().sleep(5000);
asyncResponse.resume(Response.ok(new Hello(exampleApplicationConfiguration.getName())).build());
} catch (InterruptedException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
});