for(Property prop : propList)
{
String name = prop.getName();
ModelNode propValue = prop.getValue();
VirtualServer server = factory.virtualServer().as();
server.setName(name);
List<String> aliases = new ArrayList<String>();
if(propValue.hasDefined("alias"))
{
List<ModelNode> aliasList = propValue.get("alias").asList();
for(ModelNode alias : aliasList)
aliases.add(alias.asString());
}
server.setAlias(aliases);
if(propValue.hasDefined("default-web-module"))
server.setDefaultWebModule(propValue.get("default-web-module").asString());
servers.add(server);
}
virtualServers = servers;