if (message.getPayload() instanceof EbMSMessage)
{
EbMS service = new EbMS();
EbMSPortType ebMS = service.getEbMSPort();
EbMSMessage msg = (EbMSMessage)message.getPayload();
CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(msg.getMessageHeader().getCPAId());
CPAUtils.getPartyInfo(cpa,msg.getMessageHeader().getTo().getPartyId());
//get transportreceiver CPAUtils.
String url = "http://localhost:63081/greeter";
((BindingProvider)ebMS).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,url);
ebMS.message(msg.getMessageHeader(),msg.getSyncReply(),msg.getMessageOrder(),msg.getAckRequested(),msg.getManifest());
}
return message;
}