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