datastore.put(userEntity);
} else if (presence.getPresenceType() == PresenceType.PROBE) {
// Respond to the probe by sending the app's presence.
Entity statusEntity = MainPageServlet.getStatusEntity();
xmpp.sendPresence(userJID,
((Boolean)statusEntity.getProperty("presence_available")) ?
PresenceType.AVAILABLE : PresenceType.UNAVAILABLE,
PresenceShow.valueOf(((String)statusEntity.getProperty("presence_show")).toUpperCase()),
(String)statusEntity.getProperty("status_message"));
}