public static void main(String[] args) {
		if (args == null || args.length == 0) {
			server = ServerFactory.getServer();
			server.start();
		}
		else {
			String webAppDir = args[1];
			int port = Integer.parseInt(args[2]);
			String context = args[3];
			int scanIntervalSeconds = Integer.parseInt(args[4]); 
			server = ServerFactory.getServer(webAppDir, port, context, scanIntervalSeconds);
			server.start();
		}
	}