if (name.equals("message")) {
eventBus.fireEvent(new MessageReceivedEvent(new Message(stanza)));
} else if (name.equals("presence")) {
eventBus.fireEvent(new PresenceReceivedEvent(new Presence(stanza)));
} else if (name.equals("iq")) {
eventBus.fireEvent(new IQReceivedEvent(new IQ(stanza)));
} else
throw new RuntimeException("WHAT IS THIS? (" + name + "): " + stanza.toString());
}