IPermission.EDIT_GROUP_ACTIVITY,
group.getEntityIdentifier().getKey());
}
final AdHocPagsForm rslt = new AdHocPagsForm();
rslt.setName(group.getName());  // Once set, the name field may not be changed
<BUG>Set<IPersonAttributesGroupTestGroupDefinition> testGroups = group.getTestGroups();
Set<IPersonAttributesGroupTestDefinition> tests = testGroups.iterator().next().getTests();</BUG>
for (IPersonAttributesGroupTestDefinition test : tests) {
switch (test.getAttributeName()) {
case AdHocGroupTester.MEMBER_OF:

IPermission.EDIT_GROUP_ACTIVITY,
group.getEntityIdentifier().getKey());
}
final AdHocPagsForm rslt = new AdHocPagsForm();
rslt.setName(group.getName());  // Once set, the name field may not be changed
Set<IPersonAttributesGroupTestGroupDefinition> testGroups = group.getTestGroups();
if (!testGroups.isEmpty()) {
Set<IPersonAttributesGroupTestDefinition> tests = testGroups.iterator().next().getTests();
for (IPersonAttributesGroupTestDefinition test : tests) {
switch (test.getAttributeName()) {
case AdHocGroupTester.MEMBER_OF:
