protected void receivePresence(final Presence presence) {
final XmppURI occupantURI = presence.getFrom();
final Presence.Type type = presence.getType();
if (Presence.Type.unavailable.equals(type)) {
removeOccupant(occupantURI);
if (occupantURI.equalsNoResource(session.getCurrentUserURI())) {
status = RoomStatus.locked;
roomManager.closeRoom(this);
eventBus.fireEventFromSource(new RoomChatChangedEvent(ChangeType.closed, this), roomManager);
}
} else if (!Presence.Type.error.equals(type)) {