LPS-32769 Test
LPS-32769 NullPointerException can also happen when a hook is deployed
LPS-32643 Switch to Set since we seem to be using the "contains" method a lot, and a set is faster than a list for that
LPS-32643 Add methods for regular roles vs group / organization roles .
LPS-32643 Add methods so it can apply to all other objects that deal with membership: Role, UserGroup, and Organization