code: @Nullable
      public SnowizardResponse executeRequest(final String host, final int count)
              throws IOException {
          final String uri = String.format("http://%s/?count=%d", host, count);
          final HttpGet request = new HttpGet(uri);
          request.addHeader(HttpHeaders.ACCEPT, ProtocolBufferMediaType.APPLICATION_PROTOBUF);
          request.addHeader(HttpHeaders.USER_AGENT, getUserAgent());
  
          SnowizardResponse snowizard = null;
          try {
              final BasicHttpContext context = new BasicHttpContext();
              final HttpResponse response = client.execute(request, context);
              final int code = response.getStatusLine().getStatusCode();
              if (code == HttpStatus.SC_OK) {
                  final HttpEntity entity = response.getEntity();
                  if (entity != null) {
                      snowizard = SnowizardResponse
                              .parseFrom(entity.getContent());
                  }
                  EntityUtils.consumeQuietly(entity);
              }
          } finally {
              request.releaseConnection();
          }
          return snowizard;
      }
docs: Execute a request to the Snowizard service URL
  
  @param host
  Host:Port pair to connect to
  @param count
  Number of IDs to generate
  @return SnowizardResponse
  @throws IOException
  Error in communicating with Snowizard