private void performDestroy() {
   try {
     getFacade().remove(current);
     JsfUtil.addSuccessMessage(
         ResourceBundle.getBundle("/resources/Bundle").getString("EnAuthenticationDeleted"));
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e, ResourceBundle.getBundle("/resources/Bundle").getString("PersistenceErrorOccured"));
   }
 }
 public String create() {
   try {
     getFacade().create(current);
     JsfUtil.addSuccessMessage(
         ResourceBundle.getBundle("/resources/Bundle").getString("EnAuthenticationCreated"));
     return prepareCreate();
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e, ResourceBundle.getBundle("/resources/Bundle").getString("PersistenceErrorOccured"));
     return null;
   }
 }
 public String update() {
   try {
     getFacade().edit(current);
     JsfUtil.addSuccessMessage(
         ResourceBundle.getBundle("/resources/entreprise/Bundle")
             .getString("EnAuthenticationUpdated"));
     return "View";
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e,
         ResourceBundle.getBundle("/resources/entreprise/Bundle")
             .getString("PersistenceErrorOccured"));
     return null;
   }
 }