router.route(updatedPresence);
}
else {
// Nickname is already used, and not by the same JID
throw new UserAlreadyExistsException();
}
}
// If the room is password protected and the provided password is incorrect raise a
// Unauthorized exception
if (isPasswordProtected()) {