protected String saveAndForward(Entity<?> entity) {
Group group = (Group) entity;
if (entityDao.duplicate(Group.class, group.getId(), "name", group.getName())) { return redirect(
"edit", "error.notUnique"); }
if (!group.isPersisted()) {
User creator = userService.get(getUserId());
userService.createGroup(creator, group);
} else {
group.setUpdatedAt(new Date(System.currentTimeMillis()));
if (!group.isPersisted()) {
group.setCreatedAt(new Date(System.currentTimeMillis()));