Creating shared groups with Smack api

Hi All,

A little background with my issue at hand. When I create a new user I want to add them to a shared group that is created dynamically. The problem so far is that I can not create a shared group with the smack api. I know that there is an AdHocCommand framework to invoke these types of commands but there is no documentation or examples (even the smack source code does not use the AdHocCommands). Any ideas how to create shared groups?

Thanks in advanced

i am also trying to solve the same problem, any help is appreciated! thanks.