populate(existing, operation);
return operation;
}
static String getContainerJNDIName(ModelNode container, String name) {
JndiName jndiName = null ;
if (container.hasDefined(ModelKeys.JNDI_NAME)) {
// convert the JNDI name passed by the user
jndiName = toJndiName(container.get(ModelKeys.JNDI_NAME).asString()) ;
}
else {
// build the name from scratch as java:jboss/infinispan/<container name>
jndiName = JndiName.of("java:jboss").append(InfinispanExtension.SUBSYSTEM_NAME).append(name) ;
}
return jndiName.getAbsoluteName();
}