private LoadBalancer getLoadBalancer() {
    for (LoadBalancer loadBalancer : lbApi.list().concat()) {
      if (loadBalancer.getName().startsWith(Constants.NAME)) {
        return loadBalancer;
      }
    }

    throw new RuntimeException(
        Constants.NAME + " not found. Run a CreateLoadBalancer* example first.");
  }
  private void updateLoadBalancer(LoadBalancer loadBalancer) throws TimeoutException {
    System.out.println("Update Load Balancer");

    UpdateLoadBalancer updateLB =
        UpdateLoadBalancer.builder()
            .name(Constants.NAME + "-update")
            .protocol("HTTPS")
            .port(443)
            .algorithm(LoadBalancer.Algorithm.RANDOM)
            .build();

    lbApi.update(loadBalancer.getId(), updateLB);

    // Wait for the Load Balancer to become Active before moving on
    // If you want to know what's happening during the polling, enable logging. See
    // /jclouds-example/rackspace/src/main/java/org/jclouds/examples/rackspace/Logging.java
    if (!LoadBalancerPredicates.awaitAvailable(lbApi).apply(loadBalancer)) {
      throw new TimeoutException("Timeout on loadBalancer: " + loadBalancer);
    }

    System.out.println("  " + true);
  }