public JIDs resources(JID jid) {
return this.resources(jid, false);
}
public JIDs resources(JID jid, boolean usingResource) {
return new ShareJIDs(jid, this.config.collection().find(this.buildQueryWithSmartResource(jid, usingResource), this.filterResource));
}