public void setCanOccupantsInvite(boolean canOccupantsInvite) {
        this.canOccupantsInvite = canOccupantsInvite;
    }
Sets if occupants can invite other users to the room. If the room does not require an
invitation to enter (i.e. is not members-only) then any occupant can send invitations. On
the other hand, if the room is members-only and occupants cannot send invitation then only
the room owners and admins are allowed to send invitations.

@param canOccupantsInvite boolean that specified in any occupant can invite other users to
       the room.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java