for(Property prop : secProps)
{
SecurityPattern pattern = factory.messagingSecurity().as();
pattern.setPattern(prop.getName());
Property principalProp= prop.getValue().asProperty();
pattern.setPrincipal(principalProp.getName());
ModelNode propValue = principalProp.getValue().asObject();
pattern.setSend(propValue.get("send").asBoolean());
pattern.setConsume(propValue.get("consume").asBoolean());
pattern.setManage(propValue.get("manage").asBoolean());
pattern.setCreateDurableQueue(propValue.get("createDurableQueue").asBoolean());
pattern.setDeleteDurableQueue(propValue.get("deleteDurableQueue").asBoolean());