// addressing
List<Property> addrProps = model.get("address-setting").asPropertyList();
List<AddressingPattern> addrPatterns = new ArrayList<AddressingPattern>(addrProps.size());
for(Property prop : addrProps)
{
AddressingPattern pattern = factory.messagingAddress().as();
pattern.setPattern(prop.getName());
ModelNode propValue = prop.getValue().asObject();
pattern.setDeadLetterQueue(propValue.get("dead-letter-address").asString());
pattern.setExpiryQueue(propValue.get("expiry-address").asString());
pattern.setRedeliveryDelay(propValue.get("redelivery-delay").asInt());
addrPatterns.add(pattern);
}
provider.setAddressPatterns(addrPatterns);