sessionContext.getServerRuntimeContext().getPresenceCache().remove(user);
SessionContext.SessionTerminationCause terminationCause = null;
if (presenceStanza instanceof EndOfSessionCommandStanza) {
EndOfSessionCommandStanza commandStanza = (EndOfSessionCommandStanza) presenceStanza;
terminationCause = commandStanza.getSessionTerminationCause();
}
// TODO check if we do have to do something about resource priority
List<Entity> contacts = new ArrayList<Entity>();