code: PeerOptions setPeerOptions(Peer peer, PeerOptions peerOptions) throws InvalidArgumentException {
          if (initialized) {
              throw new InvalidArgumentException(format("Channel %s already initialized.", name));
          }
  
          checkPeer(peer);
          PeerOptions ret = getPeersOptions(peer);
          removePeerInternal(peer);
          addPeer(peer, peerOptions);
  
          return ret;
  
      }
docs: Set peerOptions in the channel that has not be initialized yet.
  
  @param peer        the peer to set options on.
  @param peerOptions see {@link PeerOptions}
  @return old options.