*/
  public Object getDelegate (Object delegate, Class type)   {/*    if (type == SendQueue.class)     {      sendQueueDelegate = new SendQueueDelegate ((SendQueue) delegate);      return sendQueueDelegate;    }*/    if (RouterDelegate.isRouterClass (type))    {      routerDelegate = new RouterDelegate (delegate);      return routerDelegate;    }    else if (type == SendLink.class)     {      return new AgentArrivals ((SendLink) delegate);    }    else if (type == DestinationLink.class)     {      DestinationLink link = (DestinationLink) delegate;      if (link.getProtocolClass().getName().equals ("org.cougaar.core.mts.LoopbackLinkProtocol")) return null;      return new AckFrontend (link, this);    }     return null;  }