long startTime = System.currentTimeMillis();
List<ConfigurationSetMember> configurationSetMembers = new ArrayList<ConfigurationSetMember>(configs.size());
for (Integer resourceId : configs.keySet()) {
String label = GroupResourceConfigurationUtility.createResourceHierarchyLabel(resourceId);
Configuration configuration = configs.get(resourceId);
ConfigurationSetMember configurationSetMember = new ConfigurationSetMember(label, configuration);
configurationSetMembers.add(configurationSetMember);
}
ConfigurationDefinition definition = getConfigurationDefinition(subject, group);
ConfigurationSet configurationSet = new ConfigurationSet(definition, configurationSetMembers);
long elapsedTime = System.currentTimeMillis() - startTime;