public FilterawareDispatcher xsrfProtectionDispatcher(){
DispatcherFilter xsrfDispatcherFilter = new XSRFTokenDispatcherFilter(xsrf);
CallbackFilter xsrfCallbackFilter = new XSRFTokenCallbackFilter(xsrf);
CallbackFactory callbackFactory = new DefaultCallbackFactory(xsrfCallbackFilter);
DispatcherFilter defaultDispatcherFilter = new DefaultDispatcherFilter(callbackFactory);
FilterawareDispatcher dispatcher = new DefaultFilterawareDispatcher(xsrfDispatcherFilter, defaultDispatcherFilter);
return dispatcher;
}