final AtomicReference<FluentCaseInsensitiveStringsMap> hRead = new AtomicReference<FluentCaseInsensitiveStringsMap>();
final AtomicReference<byte[]> bb = new AtomicReference<byte[]>();
final AtomicBoolean completed = new AtomicBoolean(false);
TransferCompletionHandler tl = new TransferCompletionHandler();
tl.addTransferListener(new TransferListener() {
public void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers) {
hSent.set(headers);
}