handlers.addHandler(handler);
ResourceHandler resHandler = new ResourceHandler();
resHandler.setResourceBase(webdir);
resHandler.setDirectoriesListed(true);
handlers.addHandler(resHandler);
int port = Integer.valueOf(prop.getProperty("com.trendmicro.tme.grapheditor.port"));
Server server = new Server(port);
server.setHandler(rewrite);
server.setSessionIdManager(handler.getSessionHandler().getSessionManager().getIdManager());