private void performDestroy() {
   try {
     getFacade().remove(current);
     JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/messages").getString("UserDeleted"));
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e, ResourceBundle.getBundle("/messages").getString("PersistenceErrorOccured"));
   }
 }
 public String update() {
   try {
     getFacade().update(current);
     JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/messages").getString("UserUpdated"));
     return "view";
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e, ResourceBundle.getBundle("/messages").getString("PersistenceErrorOccured"));
     return null;
   }
 }
 public SelectItem[] getItemsAvailableSelectOne() {
   return JsfUtil.getSelectItems(usersService.findAll(), true);
 }
 public SelectItem[] getItemsAvailableSelectMany() {
   return JsfUtil.getSelectItems(usersService.findAll(), false);
 }