code: private void copyCookies(final Message message) {
          if (message instanceof HttpMessage) {
              this.cookies.putAll(((HttpMessage) message).getCookiesMap());
          }
      }
docs: Sets the cookies extracted from the given message as far as it is a HttpMessage
  
  @param message the message to extract the cookies from