aliases = new ServiceName[list.size()];
for (int i = 0; i < list.size(); i++) {
aliases[i] = EmbeddedCacheManagerService.getServiceName(list.get(i).asString());
}
}
GlobalConfiguration global = CacheContainerAdd.this.global.clone();
String transportExecutor = null;
String stack = null;
if (operation.hasDefined(ModelKeys.TRANSPORT)) {
ModelNode transport = operation.get(ModelKeys.TRANSPORT);
if (transport.hasDefined(ModelKeys.STACK)) {
stack = transport.get(ModelKeys.STACK).asString();
}
if (transport.hasDefined(ModelKeys.EXECUTOR)) {
transportExecutor = transport.get(ModelKeys.EXECUTOR).asString();
}
if (transport.hasDefined(ModelKeys.LOCK_TIMEOUT)) {
global.setDistributedSyncTimeout(transport.get(ModelKeys.LOCK_TIMEOUT).asLong());
}
if (transport.hasDefined(ModelKeys.SITE)) {
global.setSiteId(transport.get(ModelKeys.SITE).asString());
}
if (transport.hasDefined(ModelKeys.RACK)) {
global.setRackId(transport.get(ModelKeys.RACK).asString());
}
if (transport.hasDefined(ModelKeys.MACHINE)) {
global.setMachineId(transport.get(ModelKeys.MACHINE).asString());
}
}
List<Map.Entry<String, Injector<String>>> locationInjectors = new LinkedList<Map.Entry<String, Injector<String>>>();
Map<String, Configuration> configs = new LinkedHashMap<String, Configuration>();
for (ModelNode cache: operation.require(ModelKeys.CACHE).asList()) {