@Override
  public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
    return backgroundResources.awaitTermination(duration, unit);
  }
Constructs an instance of HttpJsonImageAnnotatorStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java