@ Override public RetryContext open ( RetryContext parent ) { List < RetryContext > list = new ArrayList < RetryContext > ( ) ; for ( RetryPolicy policy : this . policies ) { list . add ( policy . open ( parent ) ) ; } return new CompositeRetryContext ( parent , list , this . policies ) ; }
Creates a new context that copies the existing policies and keeps a list of the contexts from each one .