NodeImpl nMembers = (node.hasNode(N_MEMBERS)
? node.getNode(N_MEMBERS)
: node.addNode(N_MEMBERS, NT_REP_MEMBERS, null));
try {
PropertySequence properties = getPropertySequence(nMembers, userManager);
String propName = Text.escapeIllegalJcrChars(authorizable.getID());
if (properties.hasItem(propName)) {
log.debug("Authorizable {} is already member of {}", authorizable, this);
return false;
} else {
Value newMember = getSession().getValueFactory().createValue(authorizable.getNode(), true);
properties.addProperty(propName, newMember);
}
if (userManager.isAutoSave()) {
node.save();
}