printUsageError(cex.toString());
printUsageError("error reading configuration: " + cex.getMessage());
    public static void main(String[] args) {        checkJavaVersion();        Config config = null;        try {            config = parseArgs(args);        } catch (Exception cex) {            printUsageError(cex.toString());            System.exit(1);        }        if (!config.hasPortSetting()) {            printUsageError("no server ports set");            System.exit(1);        }        checkRunning(config);        // create new server instance        server = new Server(config);        // parse properties files etc        server.init();        // start the server main thread        server.start();    }