client.setAuthorizationCallback(authCalback);
// The ISendable defines the object that provides the actual
// message to send
String message = "MSH|^~\\&|||||200803051508||ADT^A31|2|P|2.5\r" + "EVN||200803051509\r" + "PID|||ZZZZZZ83M64Z148R^^^SSN^SSN^^20070103\r";
ISendable<?> sendable = new RawSendable(message);
try {
// sendAndReceive actually sends the message
IReceivable<String> receivable = client.sendAndReceive(sendable);