private boolean canJoinRoom(@Nonnull final JID realAddress){
        boolean isOwner = owners.includes(realAddress.asBareJID());
        boolean isAdmin = admins.includes(realAddress.asBareJID());
        return (!isDestroyed && (!hasOccupancyLimit() || isAdmin || isOwner || (getOccupantsCount() < getMaxUsers())));
    }
Can a user join this room

@param realAddress The address of the user that attempts to join.
@return indication if the user can join
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java