result.add(ClusterConnectionAdd.getAddOperation(address, property.getValue()));
}
}
if (subModel.hasDefined(CommonAttributes.GROUPING_HANDLER)) {
Property property = subModel.get(CommonAttributes.GROUPING_HANDLER).asProperty();
final ModelNode address = rootAddress.toModelNode();
address.add(CommonAttributes.GROUPING_HANDLER, property.getName());
result.add(GroupingHandlerAdd.getAddOperation(address, property.getValue()));
}
if (subModel.hasDefined(CommonAttributes.CONNECTOR_SERVICE)) {
for(final Property property : subModel.get(CommonAttributes.CONNECTOR_SERVICE).asPropertyList()) {
final ModelNode address = rootAddress.toModelNode();
address.add(CommonAttributes.CONNECTOR_SERVICE, property.getName());
final ModelNode csNode = property.getValue();
result.add(ConnectorServiceAdd.getAddOperation(address, csNode));
if (csNode.hasDefined(CommonAttributes.PARAM)) {
for(final Property param : csNode.get(CommonAttributes.PARAM).asPropertyList()) {
final ModelNode paramAddress = address.clone().add(CommonAttributes.PARAM, param.getName());
result.add(ConnectorServiceParamAdd.getAddOperation(paramAddress, param.getValue()));
}
}
}
}
if(subModel.hasDefined(CommonAttributes.CONNECTION_FACTORY)) {
for(final Property property : subModel.get(CommonAttributes.CONNECTION_FACTORY).asPropertyList()) {
final ModelNode address = rootAddress.toModelNode();
address.add(CommonAttributes.CONNECTION_FACTORY, property.getName());
result.add(ConnectionFactoryAdd.getAddOperation(address, property.getValue()));
}
}
if(subModel.hasDefined(CommonAttributes.POOLED_CONNECTION_FACTORY)) {
for(final Property property : subModel.get(CommonAttributes.POOLED_CONNECTION_FACTORY).asPropertyList()) {
final ModelNode address = rootAddress.toModelNode();
address.add(CommonAttributes.POOLED_CONNECTION_FACTORY, property.getName());
result.add(PooledConnectionFactoryAdd.getAddOperation(address, property.getValue()));
}
}
if(subModel.hasDefined(CommonAttributes.JMS_QUEUE)) {
for(final Property property : subModel.get(CommonAttributes.JMS_QUEUE).asPropertyList()) {
final ModelNode address = rootAddress.toModelNode();
address.add(CommonAttributes.JMS_QUEUE, property.getName());
result.add(JMSQueueAdd.getOperation(address, property.getValue()));
}
}
if(subModel.hasDefined(CommonAttributes.JMS_TOPIC)) {
for(final Property property : subModel.get(CommonAttributes.JMS_TOPIC).asPropertyList()) {
final ModelNode address = rootAddress.toModelNode();
address.add(CommonAttributes.JMS_TOPIC, property.getName());
result.add(JMSTopicAdd.getOperation(address, property.getValue()));
}
}
if(subModel.hasDefined(CommonAttributes.SECURITY_SETTING)) {
final ModelNode securitySettings = subModel.get(CommonAttributes.SECURITY_SETTING);