/*
* configure RESTY to use cache, usually done in gin
*/
final EventBus eventBus = new SimpleEventBus();
final QueueableCacheStorage cacheStorage = new VolatileQueueableCacheStorage();
final FilterawareDispatcher dispatcher = new DefaultFilterawareDispatcher();
dispatcher.addFilter(new CachingDispatcherFilter(
cacheStorage,
new CallbackFactory() {
public FilterawareRequestCallback createCallback(Method method) {
final FilterawareRequestCallback retryingCallback = new DefaultFilterawareRequestCallback(
method);