code: public void sendConfigurationForm(Form form) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          MUCOwner iq = new MUCOwner();
          iq.setTo(room);
          iq.setType(IQ.Type.set);
          iq.addExtension(form.getDataFormToSend());
  
          connection.createStanzaCollectorAndSend(iq).nextResultOrThrow();
      }
docs: Sends the completed configuration form to the server. The room will be configured
  with the new settings defined in the form.
  
  @param form the form with the new settings.
  @throws XMPPErrorException if an error occurs setting the new rooms' configuration.
  @throws NoResponseException if there was no response from the server.
  @throws NotConnectedException
  @throws InterruptedException