private Privacy getRequest(Privacy requestPrivacy) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException  {
        // The request is a get iq type
        requestPrivacy.setType(Privacy.Type.get);

        return connection().createStanzaCollectorAndSend(requestPrivacy).nextResultOrThrow();
    }
private Privacy getRequest ( Privacy requestPrivacy ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { requestPrivacy . setType ( Privacy . Type . get ) ; return connection ( ) . createStanzaCollectorAndSend ( requestPrivacy ) . nextResultOrThrow ( ) ; }
Send the {@link Privacy} stanza to the server in order to know some privacy content and then
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