}
protected IPresence.Type createIPresenceType(Presence xmppPresence) {
if (xmppPresence == null)
return IPresence.Type.AVAILABLE;
final Type type = xmppPresence.getType();
if (type == Presence.Type.available) {
return IPresence.Type.AVAILABLE;
} else if (type == Presence.Type.error) {
return IPresence.Type.ERROR;
} else if (type == Presence.Type.subscribe) {