private static String metaToJson(Submission submission) {
        Slime slime = new Slime();
        Cursor rootObject = slime.setObject();
        submission.repository().ifPresent(repository -> rootObject.setString("repository", repository));
        submission.branch().ifPresent(branch -> rootObject.setString("branch", branch));
        submission.commit().ifPresent(commit -> rootObject.setString("commit", commit));
        submission.sourceUrl().ifPresent(url -> rootObject.setString("sourceUrl", url));
        submission.authorEmail().ifPresent(email -> rootObject.setString("authorEmail", email));
        submission.projectId().ifPresent(projectId -> rootObject.setLong("projectId", projectId));
        submission.risk().ifPresent(risk -> rootObject.setLong("risk", risk));
        submission.description().ifPresent(description -> rootObject.setString("description", description));
        return toJson(slime);
    }
Returns a JSON representation of the submission meta data.
hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java