assertReady();
CallFuture<Status> callFuture = new CallFuture<Status>();
try {
AvroFlumeEvent avroEvent = new AvroFlumeEvent();
avroEvent.setBody(ByteBuffer.wrap(event.getBody()));
avroEvent.setHeaders(toCharSeqMap(event.getHeaders()));
avroClient.append(avroEvent, callFuture);
} catch (IOException ex) {
throw new EventDeliveryException("RPC request IO exception. " +
"Exception follows.", ex);
}