code: private JsonObject loadRESTCommandsFromServer(RESTClient restClient) {
          RESTResponse response = null;
          try {
              response = restClient.sendRequest(HttpMethod.GET, _DESCRIBE_URI, ContentType.APPLICATION_JSON, null);
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
          if (!response.getCode().isError()) {
              JsonReader jsonReader = Json.createReader(new StringReader(response.getBody()));            
              JsonObject result = jsonReader.readObject().getJsonObject("commands");
              jsonReader.close();
              return result;
          }
          else {
              throw new RuntimeException("Describe command error: " + response.getBody());
          }
      }
docs: Load REST commands by calling describe command
  @param restClient
  @return JsonObject that contains all the descriptions of all REST commands