*
* @param new_subscr a <code>String[]</code> value
*/
public void addNewSubscribers(Queue<Packet> results, String... new_subscr) {
for (String buddy: new_subscr) {
Packet presence = null;
if (isAllowedToSubscribe(buddy)) {
if (getRosterItem(buddy) == null) {
addToRoster(buddy);
} // end of if (getRosterItem(buddy) == null)
log.info(getJID() + ": " + "Adding buddy to roster: " + buddy);
presence = getPresence(buddy, jid, StanzaType.subscribe,
JIDUtils.getNodeNick(jid), null);
} else {
log.info(getJID() + ": " +
"Not allowed to subscribe, rejecting: " + buddy);
presence = getPresence(buddy, jid, StanzaType.unsubscribed);
} // end of else
log.finest(getJID() + ": " +
"Sending back: " + presence.toString());
results.offer(presence);
} // end of for (String buddy: new_subscr)
}