docs: private WaiterState getCurrentState() throws AmazonServiceException {
          try {
              return acceptor.accepts(sdkFunction.apply(request));
          } catch (AmazonServiceException amazonServiceException) {
              return acceptor.accepts(amazonServiceException);
          }
  
      }