BasicConfigurator.configure();
BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("[%p] %C - %F - %m%n")));
	public static void main(String args[]) throws Exception {		if (args.length < 1) {			System.err.println("Usage: java SecureKoboldWebServer port [administrator password]");			System.exit(1);		}		if (args.length > 1) {		    adminPassword = args[1];		}		int port = 0;		try {			port = Integer.parseInt(args[0]);		} catch (NumberFormatException nonumber) {			System.err.println("Invalid port number: " + args[0]);			System.exit(1);		}				BasicConfigurator.configure();		        // set UUID node manager class        System.setProperty("org.apache.commons.id.uuid.state.State", InMemoryStateImpl.class.getName());		try {		    Properties props = new Properties(System.getProperties());		    props.load(new FileInputStream(System.getProperty("kobold.server.configFile")));		    System.setProperties(props);        } catch (Exception e) {			logger.error("Could not find client configuration",e);        }				server = new SecureWebServer(port);		// add an instance of this class as default handler		server.addHandler("$default", new SecureKoboldWebServer());		server.start();		System.err.println("Listening on port " + port);	}