code: URL getAnalysisUrl(String projectId, String analysisPath) throws KeenQueryClientException {
          try {
              return new URL(String.format(Locale.US,
                      "%s/%s/projects/%s/queries/%s",
                      this.baseUrl,
                      this.apiVersion,
                      projectId,
                      analysisPath
              ));
          } catch (MalformedURLException ex) {
              Logger.getLogger(RequestUrlBuilder.class.getName())
                      .log(Level.SEVERE, "Failed to format query URL.", ex);
  
              throw new KeenQueryClientException("Failed to format query URL.", ex);
          }
      }
docs: Get a formatted URL for an analysis request.
  
  @param projectId    The project id
  @param analysisPath The analysis url sub-path
  @return The complete URL.
  @throws KeenQueryClientException