}
HttpHandler root = virtualHostHandler;
root = new CookieHandler(root);
root = new FormEncodedDataHandler(root);
root = new SimpleErrorPageHandler(root);
//TODO: multipart
if (cacheSize > 0) {
root = new CacheHandler(new DirectBufferCache(1024, 1024 * 1024, cacheSize * 1024 * 1024), root);