} else { if (queue == null) { System.err.println("no queue for this event?"); } else { System.err.println("no ack waiting for this event? queue=" + queue); }
  private void ackEvent(ATerm event)    throws IOException  {    ATermAppl appl   = (ATermAppl)event;    EventQueue queue = (EventQueue)queueMap.get(appl.getName());    if (queue != null && queue.ackWaiting()) {      appl = queue.nextEvent();      if (appl != null) {	sendTerm(factory.make("snd-event(<term>)", appl));	return;      }    }  }