RemoteMessage reply = invoker.invoke(message);
if (reply.isFault()) {
System.err.println("Oops ... something bad happened. "
+ reply.getContent());
} else {
Deal deal = (Deal) reply.getContent();
out.println("==================================");
out.println("Was the offer accepted? " + deal.isAccepted());
out.println("==================================");
}
}