XEP-0060 pubsub auto subscribe node to other users Smack
<p>I am implementing pubsub model to achieve group chat. All things are     working well. I am able to create node, other users subscribe the node, publish item by owner or subscriber and item is getting to all subscriber. </p>

<p>Now i have requirement, the owner(User creating node) should be able to subscribe node to roster users and subscribed user start getting item publish.
Is there any way to achieve this?
My node creation code is below:</p>

<pre><code>ConfigureForm form = new ConfigureForm(DataForm.Type.submit);
form.setPersistentItems(false);
form.setDeliverPayloads(true);
form.setAccessModel(AccessModel.open);
form.setPublishModel(PublishModel.open);
setSubscribers(form);
LeafNode node = (LeafNode) manager.createNode(nodeName, form);
</code></pre>