public void execute(final Map<String, Group> principalDb) throws ConfigurationException {
if(name != null && !principalDb.containsKey(name)) {
//Group group = instantiateGroup(this, conf);
final GroupImpl group = new GroupImpl(r, conf);
getSecurityManager().addGroup(group.getId(), group);
principalDb.put(group.getName(), group);
//set collection
if(group.getId() > 0) {
((AbstractPrincipal)group).setCollection(broker, collectionGroups);
}
}
}
});