} else if (stanza instanceof Message) {
// If the user wishes to deny the request, the <message/> response stanza MUST be of type "error",
// MUST mirror the <thread/> ID (if provided by the XMPP Server),
// MUST contain the original <confirm/> child element,
// and MUST specify an error, which SHOULD be <not-authorized/>
Message m = new Message(getRequester(), Message.Type.ERROR);
m.setThread(((Message) stanza).getThread());
m.getExtensions().add(confirmationRequest);
m.setError(new StanzaError(new NotAuthorized()));
xmppSession.send(m);
}
}