d.setDeploymentName(deploymentName);
d.setHostName(host.getValue().getName());
final ServletContainerService servletContainer = container.getValue();
try {
//TODO: make the caching limits configurable
ResourceManager resourceManager = new ServletResourceManager(deploymentRoot, overlays, explodedDeployment);
resourceManager = new CachingResourceManager(100, 10 * 1024 * 1024, servletContainer.getBufferCache(), resourceManager, explodedDeployment ? 2000 : -1);
d.setResourceManager(resourceManager);
} catch (IOException e) {
throw new StartException(e);