} else if (name.equals("presence")) {
onPresence.fire(new Presence(stanza));
} else if (name.equals("iq")) {
final String type = stanza.getAttribute("type");
if ("get".equals(type) || "set".equals(type)) {
onIQ.fire(new IQ(stanza));
} else {
iqManager.handle(stanza);
}
} else if (transaction != null && "stream:features".equals(name) && stanza.hasChild("mechanisms")) {
saslManager.sendAuthorizationRequest(transaction);