requestParams.put(Sender.class, null);
JSONResponse response = invoke(agentId, request, requestParams);
return response;
}
else {
TransportService service = null;
String protocol = null;
int separator = receiverUrl.indexOf(":");
if (separator != -1) {
protocol = receiverUrl.substring(0, separator);
service = getTransportService(protocol);
}
if (service != null) {
JSONResponse response = service.send(senderId, receiverUrl, request);
return response;
}
else {
throw new ProtocolException(
"No transport service configured for protocol '" + protocol + "'.");