public void signOut() throws Exception {
   if (usuarioDAO.getUsuarioActual() != null) {
     usuarioDAO.logOut();
   } else {
     throw new Exception("No hay ninguna sesion abierta.");
   }
 }
 public void changePassword(Usuario usuario, String clave) throws SQLException {
   if (usuarioDAO.getUsuarioActual().getClave().matches(clave)) {
     usuarioDAO.changePass(usuario);
   } else {
     throw new SQLException("La clave es incorrecta.");
   }
 }
 public void login(Usuario usuario) throws SQLException {
   if (usuarioDAO.getUsuarioActual() == null) {
     if (usuarioDAO.exists(usuario) == true) {
       if (usuarioDAO.match(usuario) == true) {
         usuarioDAO.login(usuario);
       } else {
         throw new SQLException("La clave del usuario es incorrecta.");
       }
     } else {
       throw new SQLException("No se puede ingresar el usuario no existe.");
     }
   } else {
     throw new SQLException("Ya se encuentra una sesion abierta.");
   }
 } //
 public Usuario getUsuarioActual() throws SQLException {
   return usuarioDAO.getUsuarioActual();
 }