Request request = setupHttpRequest(cr, ncos, os);
Response response;
final AtomicReference<Throwable> failureHolder = new AtomicReference<Throwable>();
try {
response = asyncHttpClient.executeRequest(request, new AsyncCompletionHandlerBase()
{
@Override
public Response onCompleted(final Response response) throws Exception {
logger.trace("Response received: {}", response);
return super.onCompleted(response);