target = room.findOccupantByNick(item.getNick());
} else {
return createBadRequestError(stanza, serverRuntimeContext, sessionContext, "Missing nick for item");
}
Role newRole = item.getRole();
// you can not change yourself
if (moderator.getJid().equals(target.getJid())) {
return MUCHandlerHelper.createErrorReply(stanza, StanzaErrorType.CANCEL, StanzaErrorCondition.CONFLICT);
}