@SuppressWarnings("incomplete-switch")
	public String update() {
		try {
			CrudOperation result = groupService.createOrUpdate(groupBE);
			switch (result) {
			case CREATE:
				return "search?faces-redirect=true";
			case UPDATE:
				return "view?faces-redirect=true&id=" + groupBE.getId();
			}
		} catch (Exception e) {
			FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.getMessage()));
		}
		return null;
	}