if (args != null && args.length == 1
&& (args[0].equals(START_C) || args[0].equals(STOP_C))) {
control = args[0];
}
Command command;
if (START_C.equals(control)) {
LOGGER.info("Server starting...");
command = new StartCommand();
} else {
LOGGER.info("Stop server starting...");
command = new ShutdownCommand();
}
command.execute(new ArrayList<String>());
System.exit(0);
}