for (String hostNodeName : rootNode.get(HOST).keys()) {
for (String serverConfigName : rootNode.get(HOST).get(hostNodeName).get(SERVER_CONFIG).keys()) {
ModelNode serverConfig = rootNode.get(HOST).get(hostNodeName).get(SERVER_CONFIG).get(serverConfigName);
Server server = new Server(
serverConfig.get(NAME).asString(),
hostNodeName,
serverConfig.get(GROUP).asString(),
serverConfig.get(AUTO_START).asBoolean());
if(containerNameMap.containsKey(server.getUniqueName())) {
server.setContainerName(containerNameMap.get(server.getUniqueName()));
}
domain.addServer(server);
}
}
for (String serverGroupName : rootNode.get(SERVER_GROUP).keys()) {