} else if(arg.startsWith("servlet=")) { //adding custom servlet
String servletCmd = arg.substring("servlet=".length());
String[] halves = servletCmd.split("@");
try {
Class<?> servletClass = Class.forName(halves[0]);
HttpServlet srvlet = (HttpServlet) servletClass.newInstance();
if(!halves[1].startsWith("/"))
halves[1] = "/" + halves[1];
servletsToAdd.put(halves[1], srvlet);
} catch(Exception e) {
e.printStackTrace();