@Override
  public void updateUser(UserDTO userDTO) {

    try {
      Profil profil = getProfilDTODismantler().dismantle(userDTO.getProfil());

      User user = getUserDTODismantler().dismantle(userDTO);
      user.setIdUser(userDTO.getIdUser());
      user.setPhone(userDTO.getPhone());
      user.setProfil(profil);

      getUserSession().updateUser(user);

    } catch (DtoConfigurationException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
  @Override
  public void addUser(UserDTO userDTO) {
    try {
      User user = getUserDTODismantler().dismantle(userDTO);
      user.setPhone(userDTO.getPhone());

      List<Profil> listProfil2 = getUserSession().loadAllProfil();
      for (Profil profil2 : listProfil2) {
        if (profil2.getName().equals(userDTO.getProfil().getName())) {
          user.setProfil(profil2);
        }
      }
      getUserSession().addUser(user);
    } catch (DtoConfigurationException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }