Collection<VirtualFile> resourceRoots = ResourceUtil.getResourceRoots(cpResources, webResources);
getLog().debug("resourceRoots: " + resourceRoots);
scanStaticResources(resourceRoots);
StaticResourceHandler staticResourceHandler = new StaticResourceHandler(resourceRoots);
ResourceFactory resourceFactory = new ResourceFactoryImpl(staticResourceHandler);
scanDynamicResources(cpResources, resourceFactory);
DynamicResourceHandler dynamicResourceHandler = new DynamicResourceHandler(staticResourceHandler, resourceFactory);