if (link == loopbackLink) MessageUtils.setMessageTypeToLocal (msg);
  private DestinationLink linkChoice (DestinationLink link, AttributedMessage msg)  {    if (debug) log.debug ("Link choice: " +(link != null? getName(link) : "null")+                           " for " +MessageUtils.toString(msg));    if (link != null)    {      MessageUtils.setSendProtocolLink (msg, getName(link));      Ack ack = MessageUtils.getAck (msg);      if (ack != null) ack.setSendLink (getName (link));      // if (showTraffic) showProgress (link);      //  Shout out some link selection activity for assessment purposes      if (MessageUtils.isRegularMessage (msg))      {        String targetNode = MessageUtils.getToAgentNode (msg);        DestinationLink lastLink = getLastLinkSelection (targetNode);        if (lastLink != null)        {          String lastLinkName = getName (lastLink);          String thisLinkName = getName (link);          if (!lastLinkName.equals (thisLinkName))          {            CougaarEvent.postComponentEvent             (              CougaarEventType.STATUS, MessageUtils.getOriginatorAgent(msg).toString(), this.toString(),              "Switch from " +lastLinkName+ " to " +thisLinkName+ " for messages from " +thisNode+              " to " +targetNode            );          }        }      }      recordLinkSelection (link, msg);    }    return link;  }