@Override
public void onPresenceReceived(final PresenceReceivedEvent event) {
final Presence presence = event.getPresence();
if (presence.getType() == Presence.Type.subscribe) {
final XMLPacket nick = presence.getExtension("nick", XmppNamespaces.NICK);
eventBus.fireEventFromSource(new SubscriptionRequestReceivedEvent(presence.getFrom(), nick.getText()), this);
}
}