Configuration[] groups = config.getChildren(GROUPS);
if (groups.length == 1) {
groups = groups[0].getChildren(GROUP);
GroupManager manager;
try {
manager = getAccreditableManager().getGroupManager();
} catch (AccessControlException e) {
throw new ConfigurationException("configuration failed: ", e);
}
for (int i = 0; i < groups.length; i++) {
String groupId = groups[i].getValue();
Group group = manager.getGroup(groupId);
if (group == null) {
throw new ConfigurationException("Couldn't find Group for group name ["
+ groupId + "]");
}