@Override
  public List<DataAlerta> listaDeAlertas(long idAV) throws NoExisteElAV {
    List<DataAlerta> da = new ArrayList<>();
    String tenant = getTenant(idAV);
    if (tenant != null) {
      avDAOTenant.open(tenant);
      List<Alerta> alertas = avDAOTenant.getAllAlerta();
      da = new ArrayList<>();

      for (Alerta a : alertas) {
        da.add(a.getDataAlerta());
      }

      avDAOTenant.close(tenant);

    } else {
      throw new exceptions.NoExisteElAV();
    }
    return da;
  }