code: public ApplicationID getApplicationID() throws IOException {
      final String url = "ws/v1/cluster/apps/new-application";
      final HttpPost post = preparePost(url);
      try (final CloseableHttpResponse response = this.httpClient.execute(post, this.httpClientContext)) {
        final String message = IOUtils.toString(response.getEntity().getContent());
        final ApplicationID result = this.objectMapper.readValue(message, ApplicationID.class);
        return result;
      }
    }
docs: Request an ApplicationId from the cluster.
  
  @return
  @throws IOException