* @param reverse return the list in reverse order?
* @return the current list of interceptors in the correct order
*/
private List<RequestInterceptor> getInterceptors(boolean reverse) {
ArrayList<RequestInterceptor> l = new ArrayList<RequestInterceptor>( this.interceptorsMap.values() );
OrderedServiceComparator comparator = new OrderedServiceComparator();
Collections.sort(l, comparator );
if (reverse) {
Collections.reverse(l);
}
return l;