code: protected HttpPut generatePutRequest(final String path, final Map<String, Object> paramMap) {
          final HttpPut put = new HttpPut(buildUri(path));
          if (paramMap != null) {
              put.setEntity(new StringEntity(JSONObject.toJSONString(paramMap), ContentType.APPLICATION_JSON));
          }
          return put;
      }
docs: Helper method to build the PUT request for the server.
  
  @param path the path
  @param paramMap the parameters map.
  @return the put object.