root.addServlet(new ServletHolder(ResourceServlet.resource("json2.js")), "/json2.js");
root.addServlet(new ServletHolder(ResourceServlet.resource("cors-index.html")), "/cors/");
root.addServlet(new ServletHolder(ResourceServlet.file(args[0])), "/config.js");
root.addServlet(new ServletHolder(new AjaxServlet()), "/cors/dispacher");
if (ConfigurationHolder.c().getServerConfig().haveFrontend()) {
File file = new File(ConfigurationHolder.c().getServerConfig().getFrontend());
if (!file.exists() || !file.isDirectory()) {