public Interceptor[] buildRouteInterceptors(Interceptor[] defaultInters,Interceptor[] resourceInters,Class<? extends Resource> resourceClass,Interceptor[] methodInters,Method method){
  List<Interceptor> allInters=new ArrayList<Interceptor>();
  for (  Interceptor defaultInter : defaultInters) {
    allInters.add(defaultInter);
  }
  for (  Interceptor resourceInter : resourceInters) {
    allInters.add(resourceInter);
  }
  for (  Interceptor methodInter : methodInters) {
    allInters.add(methodInter);
  }
  Class<? extends Interceptor>[] resourceClears=getResourceClears(resourceClass);
  Class<? extends Interceptor>[] methodClears=getMethodClears(method);
  if ((resourceClears != null && resourceClears.length > 0) || (methodClears != null && methodClears.length > 0)) {
    for (int i=0; i < allInters.size(); i++) {
      i=clearInterceptor(allInters,resourceClears,i);
      i=clearInterceptor(allInters,methodClears,i);
    }
  }
  return allInters.toArray(new Interceptor[allInters.size()]);
}

public Interceptor [ ] buildRouteInterceptors ( Interceptor [ ] defaultInters , Interceptor [ ] resourceInters , Class < ? extends Resource > resourceClass , Interceptor [ ] methodInters , Method method ) { List < Interceptor > allInters = new ArrayList < Interceptor > ( ) ; for ( Interceptor defaultInter : defaultInters ) { allInters . add ( defaultInter ) ; } for ( Interceptor resourceInter : resourceInters ) { allInters . add ( resourceInter ) ; } for ( Interceptor methodInter : methodInters ) { allInters . add ( methodInter ) ; } Class < ? extends Interceptor > [ ] resourceClears = getResourceClears ( resourceClass ) ; Class < ? extends Interceptor > [ ] methodClears = getMethodClears ( method ) ; if ( ( resourceClears != null && resourceClears . length > 0 ) || ( methodClears != null && methodClears . length > 0 ) ) { for ( int i = 0 ; i < allInters . size ( ) ; i ++ ) { i = clearInterceptor ( allInters , resourceClears , i ) ; i = clearInterceptor ( allInters , methodClears , i ) ; } } return allInters . toArray ( new Interceptor [ allInters . size ( ) ] ) ; }
build interceptors of action
