private Set<GroupInformation> createMemberGroupInformation(
CSIdentityRef userIdentity, List<CSIdentityRef> groupIdentities) {
CoreServicesLibrary csLibrary = CoreServicesLibrary.INSTANCE;
Set<GroupInformation> memberGroupInfo = new LinkedHashSet<>();
for (CSIdentityRef groupIdentity : groupIdentities) {
if (csLibrary.CSIdentityIsMemberOfGroup(userIdentity, groupIdentity)) {
memberGroupInfo.add(groupInformationCreator.createGroupInformation(groupIdentity));
}
}
return memberGroupInfo;
}