Domain domain = getDomain(commandLine.getOptionValue("ping"));
ServerHandler serverHandler = ServerHandler.getInstance(domain);
Server server = serverHandler.getServer();
server.initLocalServer();
server.initLocalDomain();
CommandResult result = server.pingManagementResource();
if (result.isOk()) {
System.out.println("SUCCESS");
} else {
System.out.println("FAILURE");
}