// Add the service group contexts, service contexts & their respective properties
String[] sgCtxIDs = configCtx.getServiceGroupContextIDs();
for (int i = 0; i < sgCtxIDs.length; i ++) {
ServiceGroupContext sgCtx = configCtx.getServiceGroupContext(sgCtxIDs[i]);
ContextClusteringCommand updateServiceGroupCtxCmd =
ContextClusteringCommandFactory.getUpdateCommand(sgCtx,
excludedPropPatterns,
true);
if (updateServiceGroupCtxCmd != null) {
cmdList.add(updateServiceGroupCtxCmd);
}
if (sgCtx.getServiceContexts() != null) {
for (Iterator iter2 = sgCtx.getServiceContexts(); iter2.hasNext();) {
ServiceContext serviceCtx = (ServiceContext) iter2.next();
ContextClusteringCommand updateServiceCtxCmd =
ContextClusteringCommandFactory.getUpdateCommand(serviceCtx,
excludedPropPatterns,
true);
if (updateServiceCtxCmd != null) {
cmdList.add(updateServiceCtxCmd);
}
}
}
}
ContextClusteringCommand updateCmd =
ContextClusteringCommandFactory.getUpdateCommand(configCtx,
excludedPropPatterns,
true);
if (updateCmd != null) {
cmdList.add(updateCmd);