code: public void kickParticipant(Resourcepart nickname, String reason) throws XMPPErrorException, NoResponseException, NotConnectedException, InterruptedException {
          changeRole(nickname, MUCRole.none, reason);
      }
docs: Kicks a visitor or participant from the room. The kicked occupant will receive a presence
  of type "unavailable" including a status code 307 and optionally along with the reason
  (if provided) and the bare JID of the user who initiated the kick. After the occupant
  was kicked from the room, the rest of the occupants will receive a presence of type
  "unavailable". The presence will include a status code 307 which means that the occupant
  was kicked from the room.
  
  @param nickname the nickname of the participant or visitor to kick from the room
  (e.g. "john").
  @param reason the reason why the participant or visitor is being kicked from the room.
  @throws XMPPErrorException if an error occurs kicking the occupant. In particular, a
  405 error can occur if a moderator or a user with an affiliation of "owner" or "admin"
  was intended to be kicked (i.e. Not Allowed error); or a
  403 error can occur if the occupant that intended to kick another occupant does
  not have kicking privileges (i.e. Forbidden error); or a
  400 error can occur if the provided nickname is not present in the room.
  @throws NoResponseException if there was no response from the server.
  @throws NotConnectedException
  @throws InterruptedException