Group anon = createGroup(ctx, Group.DefaultGroup.AnonymousUsers.name(), null);
// DefaultUser -> *no* permissions by default -- should be overridden by app
createGroup(ctx, Group.DefaultGroup.DefaultUsers.name(), AWUtil.list(anon));
ctx.save();
}
static Group createGroup (ObjectContext ctx, String name, List<Group>memberOf)
{
Group group = ctx.create(Group.class);