Firstly, I add myself in Roster of MUC when I display MUC’‘s Roster. The node of MUC’‘s Roster is the class org.jivesoftware.smackx.muc.Occupant. This class is only support for getter methods, but setter methods. Therefore, it’'s my problem when I want to add himself to the Roster of MUC when initializing Roster, because we cannot set attributes (jid, nick, affiliation, …) for new Occupant.
Tell me how to set for new Occupant or other solution in this case!
Thanks in advance!