}
public PduHandle send(TransportMapping transport,
Address address, AgentXPDU message,
PduHandleCallback callback) throws IOException {
PduHandle handle;
if (message instanceof AgentXResponsePDU) {
handle = new PduHandle(message.getPacketID());
}
else {
handle = createPduHandle();
message.setPacketID(handle.getTransactionID());
}
if (callback != null) {
callback.pduHandleAssigned(handle, message);
}
if (transport != null) {