String serverID = cfd.getServerID();
int serverID = cfd.getServerID();
   public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable   {      ClientConnectionFactoryDelegate cfd = (ClientConnectionFactoryDelegate)inv.getTargetObject();      ClientConnectionDelegate connectionDelegate = (ClientConnectionDelegate)inv.invokeNext();      connectionDelegate.init();      String serverID = cfd.getServerID();      ResourceManager rm = ResourceManagerFactory.instance.checkOutResourceManager(serverID);      MessageIdGenerator gen =         MessageIdGeneratorFactory.instance.checkOutGenerator(serverID, cfd);      ConnectionState connectionState =         new ConnectionState(serverID, connectionDelegate,                             connectionDelegate.getRemotingConnection(),                             cfd.getVersionToUse(), rm, gen);      connectionDelegate.setState(connectionState);      return connectionDelegate;   }