code: public void initialize(IClient client) {
          if (log.isDebugEnabled()) {
              log.debug("initialize - client: {}", client);
          }
          if (this.client != null && this.client instanceof Client && !this.client.equals(client)) {
              // unregister old client
              if (log.isTraceEnabled()) {
                  log.trace("Unregistering previous client: {}", this.client);
              }
              ((Client) this.client).unregister(this, false);
          }
          this.client = client;
          if (this.client instanceof Client && !((Client) this.client).isRegistered(this)) {
              // register new client
              if (log.isTraceEnabled()) {
                  log.trace("Registering client: {}", this.client);
              }
              ((Client) this.client).register(this);
          }
      }
docs: Initializes client
  
  @param client
  Client bound to connection