try
{
if (RMTransportHelper.isRMMessage(callProps))
{
RMMetadata rmMetadata = new RMMetadata(getRemotingVersion(), targetAddress, marshaller, unmarshaller, callProps, metadata, clientConfig);
return RM_CHANNEL.send(reqMessage, rmMetadata);
}
else
{
Client client = new Client(locator, "jbossws", clientConfig);