docs: synchronized PaymentChannelServer setConnectedHandler(PaymentChannelServer connectedHandler, boolean override) {
          if (this.connectedHandler != null && !override)
              return this.connectedHandler;
          this.connectedHandler = connectedHandler;
          return connectedHandler;
      }