handler = new ServerHandlerImpl(core);
core.init(logReader, serverHistory, dispatcher, handler);
coreDaemon = new Daemon(core);
coreDaemon.start();
core.waitActive();
} catch (ConfigurationException e) {
e.printStackTrace();
System.err.println("Invalid configurations.");
} catch (IOException e) {