private WebAppContext setupWebContext(final File outputFolder, final File pluginsFolder) {
WebAppContext webAppContext = new WebAppContext();
webAppContext.setContextPath("/");
webAppContext.setBaseResource(Resource.newClassPathResource("web"));
webAppContext.setParentLoaderPriority(true);
webAppContext.addEventListener(new GuiceServletContextListener() {
@Override
protected Injector getInjector() {
return Guice.createInjector(new CrawljaxWebModule(outputFolder, pluginsFolder));
}