id = new Integer(state.getDelegate().getID());
   private ConnectionState getConnectionState(Invocation invocation)   {      if (state==null)      {         ClientConnectionDelegate currentDelegate =            ((ClientConnectionDelegate)invocation.getTargetObject());                  state = (ConnectionState)currentDelegate.getState();      }      return state;   }