subsystem.get(OP).set(ADD);
subsystem.get(OP_ADDR).set(address);
list.add(subsystem);
ResourceAdapters ras = null;
try {
String localName = null;
switch (Namespace.forUri(reader.getNamespaceURI())) {
case RESOURCEADAPTERS_1_0: {
localName = reader.getLocalName();
final Element element = Element.forName(reader.getLocalName());
log.tracef("%s -> %s", localName, element);
switch (element) {
case SUBSYSTEM: {
ResourceAdapterParser parser = new ResourceAdapterParser();
ras = parser.parse(reader);
ParseUtils.requireNoContent(reader);
break;
}
}
}
}
} catch (Exception e) {
throw new XMLStreamException(e);
}
if (ras != null && ras.getResourceAdapters() != null) {
for (ResourceAdapter ra : ras.getResourceAdapters()) {
final ModelNode raAddress = address.clone();
raAddress.add(RESOURCEADAPTER, ra.getArchive());
raAddress.protect();
final ModelNode operation = new ModelNode();