public List<Presence> kickOccupant(@Nonnull final JID userAddress, @Nonnull final Affiliation actorAffiliation, @Nullable final Role actorRole, @Nullable final JID actorJID, @Nullable final String actorNickname, @Nullable final String reason) throws ForbiddenException, NotAllowedException
    {
        return kickOccupant(userAddress, actorAffiliation, actorRole, actorJID, actorNickname, reason, 307);
    }
Kicks a user from the room. If the user was in the room, the returned updated presence will be sent to the
remaining occupants.

When attempting to remove the <em>affiliation</em> from a user from the room, use
{@link #addNone(JID, Affiliation)} instead. Kicking a user will only cause the
<em>role</em> of the occupant to be changed.

The status code that is used in the presence stanzas that are sent as a result of the kick is '307'.

@param userAddress the (real) JID of the occupant to change to visitor
@param actorJID      The JID of the actor that initiated the kick.
@param actorNickname The actor nickname.
@param reason        An optional reason why the user was kicked (can be {@code null}).
@return the list of updated presences of all the client resources that the occupant has used to join the room.
@throws ForbiddenException Thrown if trying to ban an owner or an administrator.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java