throws UnauthorizedException, GroupAlreadyExistsException {
if (permissions.get(Constants.SYSTEM_ADMIN)) {
Group group = profileManager.createGroup(name);
return new GroupProxy(group, authorization, permissions);
} else {
throw new UnauthorizedException();
}
}