if (needPrivileged && !priv.isMember(p)) {
logger.info(principal + " need privileged access");
priv.addMember(p);
} else if (!needPrivileged && priv.isMember(p)) {
logger.info(principal + " do not need privileged access");
priv.removeMember(p);
}
}
}
public void flushGroupCaches() {