}
};
if (session.nodeExists(groupsPath)) {
Node groupsNode = session.getNode(groupsPath);
visitor.visit(groupsNode);
} // else: no groups exist -> nothing to do.
// Based on the user's setting return either of the found membership informations
return select(pIds, nIds);
}