Openfire add member in MUCRoom

I want to create a chat room through openfire plugin.I am able to do it.But i want to add members also using openfire plugin.wen I use MUCRoom.addMember(“user”,“user”,room.getRole) method it hangs?Its not able to add members.Any help?how i can add?

Hi,
You can look openfire muc services in restapi plugin. There is a create a room, add member, add owner, add admin … you can do things like. also you must read restapi document in here restapi plugin its here in example xml and json data