{
if (! requestType.equalsIgnoreCase("rest"))
{
RpcRequest req =
new RpcRequestBuilder(uri).setEntity("".getBytes("UTF-8")).build();
Future<RpcResponse> response = client.rpcRequest(req);
responseString = response.get().getEntity().asString("UTF-8");
}
else
{
RestRequest restRequest = new RestRequestBuilder(uri).setEntity("".getBytes("UTF-8")).build();