* Traverses all subscriptions and collects the subscriptions of the
* user (matching bareJID).
*/
public void visit(String nodeName, String subID, Entity sub) {
if (sub.getBareJID().equals(bareJID)) {
SubscriptionItem si = new SubscriptionItem(nodeName, subID, sub);
subscriptions.add(si);
}
}