code: protected HttpPost generatePostRequest(final String path, final Map<String, Object> paramMap) {
          final HttpPost post = new HttpPost(buildUri(path));
          post.setEntity(new StringEntity(JSONObject.toJSONString(paramMap), ContentType.APPLICATION_JSON));
          return post;
      }
docs: Helper method to build the POST request for the server.
  
  @param path the path.
  @param paramMap the parameters map.
  @return the post object.