delegate.setState(new ConnectionState(delegate,
delegate.setState(new ConnectionState(cf.getServerID(), delegate,
   public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable   {      ClientConnectionFactoryDelegate cf = (ClientConnectionFactoryDelegate)invocation.getTargetObject();                       ClientConnectionDelegate delegate = (ClientConnectionDelegate)invocation.invokeNext();            delegate.init();            ResourceManager rm = ResourceManagerFactory.instance.getResourceManager(cf.getServerID());            MessageIdGenerator gen = MessageIdGeneratorFactory.instance.getGenerator(cf.getServerID(), cf);                                           delegate.setState(new ConnectionState(delegate,                                                                                        delegate.getRemotingConnection(),                                            cf.getVersionToUse(), rm, gen));                        return delegate;   }