public void runServer(ConfigurationForServer configuration) {
        configuration.setProperties(properties);
        if (configuration.isInvalid())
            exitStatus = 1;
        if (configuration.showHelp()) {
            System.out.println(configuration.getHelpText());
        } else {
            try {
                webDaemon.start(configuration);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    }