code: public void copy(ConnectionContext source) {
          this.connection = source.connection;
          this.session = source.session;
          this.destination = source.destination;
      }
docs: Sets this context object with the same data found in the source context.
  
  @param source the source context whose data is to be copied