RequestEntity entity = new RequestEntity(
contactId, request);
entityManager.add(callback, entity, timeout, unit);
}
Transport transport = null;
synchronized (this) {
transport = this.transport;
}
if (transport == null) {
throw new IOException();
}
transport.send(contactId, request, timeout, unit);
fireMessageSent(contactId, request);
}