CallbackFilter xsrfCallbackFilter = new XSRFTokenCallbackFilter(xsrf);
QueueableCacheStorage cache = new DefaultQueueableCacheStorage();
CallbackFilter cachingCallbackFilter = new RestfulCachingCallbackFilter(cache);
CallbackFactory callbackFactory = new RetryingCallbackFactory(xsrfCallbackFilter, cachingCallbackFilter);
DispatcherFilter cachingDispatcherFilter = new RestfulCachingDispatcherFilter(cache, callbackFactory);
FilterawareDispatcher dispatcher = new DefaultFilterawareDispatcher(xsrfDispatcherFilter, cachingDispatcherFilter);
return dispatcher;