Openfire Plugins for Group Management

Hello,

I want to implement the Community Group Management(Creating Groups, Delete Groups, Add members to the Groups, Invite People to Groups say as it is in the case of Blackberry BBM) in my Android Application with Openfire Server and for that I have come up with the solution that I have to make the Openfire Plugins for this type of customization ( My requirement is that any user can create Group from his/her profile and can invite other users from their own contact/roster list or from outside the contact list) .

I am beginner working with the Openfire server and I have understood the whole structure of Plugins, but unable to frame the right code required for the implementation. If anybody can please help/guide me a little in the Plugin Development, then I can move forth very easily.

Thanks