JsonRpcClient client;
if ("ws".equals(clientType)) {
client = new JsonRpcClientWebSocket("ws://localhost:" + getPort()
+ servicePath, headers);
} else if ("http".equals(clientType)) {
client = new JsonRpcClientHttp("http://localhost:" + getPort()
+ servicePath, headers);
} else {
throw new RuntimeException(
"Unrecognized property value jsonrpcconnector-client-type="
+ clientType);