@Override
public Response apply(final ContainerRequestContext req) {
// Suspend current request
final AsyncContext asyncContext = asyncContextProvider.get();
asyncContext.suspend();
Executors.newSingleThreadExecutor().submit(new Runnable() {
@Override
public void run() {