NXP-12399: NuxeoPrincipalImpl getAllGroups should return a copy of the group list