I finally got it running. The correct HttpRequest must be:
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI("http://" + hostName + "/" + "bazaar" + "?start=" + ApplicationId + "?type=run"))
.GET()
.build();