docs: public CloseableHttpClient build(String name) {
          final CloseableHttpClient client = buildWithDefaultRequestConfiguration(name).getClient();
          // If the environment is present, we tie the client with the server lifecycle
          if (environment != null) {
              environment.lifecycle().manage(new Managed() {
                  @Override
                  public void start() throws Exception {
                  }
  
                  @Override
                  public void stop() throws Exception {
                      client.close();
                  }
              });
          }
          return client;
      }