}
public String addUserToGroup() throws ObjectLockedException, ObjectExistsException {
ViewGroup viewGroup = (ViewGroup) this.collectionGroups.getRowData();
ViewUser viewUser = (ViewUser) viewGroup.getUsersModel().getRowData();
Group group = viewGroup.getGroup();
if (group.getUsers() == null) {
group.setUsers(new ArrayList());
}
group.getUsers().add(viewUser.getUser());
GroupDao.createInstance().update(group);
viewUser.setMember(true);
return "";
}