@Override
  public void modRoom(RoomTransfer t) throws RoomAppServicesException {
    DAOFactory fac = DAOFactory.getInstance();
    RoomDAO dao = fac.getRoomDAO();

    checkData(t);

    try {
      if (dao.searchRoomByID(t.getId())) {
        if (dao.checkNumRoom(t.getId(), t.getnumRoom())) {
          dao.updateRoom(t);
        } else {
          throw new RoomAppServicesException(
              "la habitacion a modificar intenta cambiar a un número de habitación ya existente");
        }
      } else {
        throw new RoomAppServicesException("la habitacion a modificar no existe");
      }
    } catch (RoomIntegrationException e) {
      throw new RoomAppServicesException(e.getMessage());
    }
  }