public SubmitResult submit(Submission submission, TenantName tenant, ApplicationName application) {
        return toSubmitResult(send(request(HttpRequest.newBuilder(applicationPath(tenant, application).resolve("submit"))
                                                      .timeout(Duration.ofMinutes(40)),
                                           POST,
                                           new MultiPartStreamer().addJson("submitOptions", metaToJson(submission))
                                                                  .addFile("applicationZip", submission.applicationZip())
                                                                  .addFile("applicationTestZip", submission.applicationTestZip())),
                                   1));
    }
Sends the given submission to the remote controller and returns the version of the accepted package, or throws if this fails.
hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java