@Override
public Operation getBatchOperation() {
CompositeOperation compositeOperation = new CompositeOperation();
if (hasDiscoveryGroupName()) {
compositeOperation.addStep(new UndefineAttribute(address, STATIC_CONNECTORS_ATTRIBUTE));
compositeOperation.addStep(new WriteAttribute(address, DISCOVERY_GROUP_NAME, configuration
.getSimpleValue(DISCOVERY_GROUP_NAME)));
} else {
compositeOperation.addStep(new UndefineAttribute(address, DISCOVERY_GROUP_NAME));
List<Property> propertyList = configuration.getList(STATIC_CONNECTORS_PROPERTY).getList();
List<String> staticConnectors = new ArrayList<String>(propertyList.size());
for (Property property : propertyList) {
if (property instanceof PropertySimple) {
PropertySimple propertySimple = (PropertySimple) property;