code: private RESTResponse sendRequest(RESTClient restClient, String methodName,
              String uri, byte[] body) throws IOException {
          RESTResponse response = restClient.sendRequest(HttpMethod.methodFromString(methodName), 
                                                         uri, ContentType.APPLICATION_JSON, body);        
          logger.debug("response: {}", response.toString());
          return response;
      }
docs: Make RESTful calls to Doradus server
  @param restClient
  @param methodName
  @param uri
  @param body
  @return
  @throws IOException