SimpleBeanProvider beanProvider = new SimpleBeanProvider();
beanProvider.add("GroupsRestApplication", app);
//using InjectMockResourceFactory to keep examples spring-free
ResourceFactory factory = new InjectMockResourceFactory(beanProvider);
TransportDispatcher dispatcher = new DelegatingTransportDispatcher(new RestLiServer(config, factory, engine));
final FilterChain fc = FilterChains.empty().addLast(new ServerCompressionFilter(supportedCompression))
.addLast(new SimpleLoggingFilter());
return new HttpServerFactory(fc).createServer(port,
HttpServerFactory.DEFAULT_CONTEXT_PATH,