code: private Stanza setRequest(Privacy requestPrivacy) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException  {
          // The request is a get iq type
          requestPrivacy.setType(Privacy.Type.set);
  
          return connection().createStanzaCollectorAndSend(requestPrivacy).nextResultOrThrow();
      }
docs: Send the {@link Privacy} stanza to the server in order to modify the server privacy and waits
  for the answer.
  
  @param requestPrivacy is the {@link Privacy} stanza configured properly whose xml will be
  sent to the server.
  @return a new {@link Privacy} with the data received from the server.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException