code: public Subclass withIAMMaxRetry(int retryCount) {
          this.iamMaxRetry = retryCount;
  
          if ((retryCount > 0) &&
          		(this.credentials.getCredentials() instanceof IBMOAuthCredentials) &&
          		((IBMOAuthCredentials)this.credentials.getCredentials()).getTokenManager() instanceof DefaultTokenManager){
          			((DefaultTokenManager)((IBMOAuthCredentials)this.credentials.getCredentials()).getTokenManager()).setIamMaxRetry(iamMaxRetry);
          }
          return getSubclass();
      }
docs: Sets the maximum number of attempts for retrieving/refreshing IAM token by the DefaultTokenManager.
  This should only be over written for a dev or staging environment
  
  @param offset, offset in seconds from token expiry time.
  @return This object for method chaining.