*
* @param interceptors the list of interceptors
*/
public static void noStreamCaching(List<AbstractInterceptorDefinition> interceptors) {
for (int i = 0; i < interceptors.size(); i++) {
AbstractInterceptorDefinition interceptor = interceptors.get(i);
if (interceptor instanceof InterceptorDefinition
&& ((InterceptorDefinition)interceptor).getInterceptor() instanceof StreamCachingInterceptor) {
interceptors.remove(interceptor);
}
}