} else if (commandLine.hasOption("create")) {
createDomain();
} else if (commandLine.hasOption("start")) {
Domain domain = getDomain(commandLine.getOptionValue("start"));
ServerHandler serverHandler = ServerHandler.getInstance(domain);
Server server = serverHandler.getServer();
server.initLocalServer();
CommandResult result = server.startDomain(domain.getDomainName());
System.exit(result.getExitCode());
} else if (commandLine.hasOption("stop")) {
Domain domain = getDomain(commandLine.getOptionValue("stop"));
ServerHandler serverHandler = ServerHandler.getInstance(domain);
Server server = serverHandler.getServer();
server.initLocalServer();
server.initLocalDomain();
CommandResult result = server.stopDomain();
System.exit(result.getExitCode());