private List < EndpointInterceptor > adaptInterceptors ( List < Object > interceptors ) { List < EndpointInterceptor > endpointInterceptors = new ArrayList < EndpointInterceptor > ( ) ; if ( interceptors != null ) { for ( Object interceptor : interceptors ) { if ( interceptor instanceof EndpointInterceptor ) { endpointInterceptors . add ( ( EndpointInterceptor ) interceptor ) ; } } } return endpointInterceptors ; }
Adapts object list to endpoint interceptors .