docs: protected void close(RetryPolicy retryPolicy, RetryContext context, RetryState state,
  			boolean succeeded) {
  		if (state != null) {
  			if (succeeded) {
  				if (!context.hasAttribute(GLOBAL_STATE)) {
  					this.retryContextCache.remove(state.getKey());
  				}
  				retryPolicy.close(context);
  				context.setAttribute(RetryContext.CLOSED, true);
  			}
  		}
  		else {
  			retryPolicy.close(context);
  			context.setAttribute(RetryContext.CLOSED, true);
  		}
  	}