code: protected HttpUriRequest buildMethod(final String method, final String path, final Map<String, Object> params) {
          if (StringUtils.equalsIgnoreCase(method, HttpGet.METHOD_NAME)) {
              return generateGetRequest(path, params);
          } else if (StringUtils.equalsIgnoreCase(method, HttpPost.METHOD_NAME)) {
              return generatePostRequest(path, params);
          } else if (StringUtils.equalsIgnoreCase(method, HttpPut.METHOD_NAME)) {
              return generatePutRequest(path, params);
          } else if (StringUtils.equalsIgnoreCase(method, HttpDelete.METHOD_NAME)) {
              return generateDeleteRequest(path);
          } else {
              throw new RuntimeException("Must not be here.");
          }
      }
docs: Helper method that builds the request to the server.
  
  @param method the method.
  @param path the path.
  @param params the parameters.
  @return the request.