*/
private void createResolvedGroupPrincipalSet(String username, Set groupPrincipals, String[] groups, int i)
{
LOG.debug("Group [" + i + "] for user[" + username + "] is [" + groups[i] + "]");
GroupPrincipal group = new GroupPrincipalImpl(groups[i]);
Preferences preferences = Preferences.userRoot().node(group.getFullPath());
LOG.debug("Group name:" + group.getName());
String[] fullPaths = groupHierarchyResolver.resolve(preferences);
for (int n = 0; n < fullPaths.length; n++)
{
LOG.debug("Group [" + i + "] for user[" + username + "] is ["
+ GroupPrincipalImpl.getPrincipalNameFromFullPath(fullPaths[n]) + "]");
groupPrincipals.add(new GroupPrincipalImpl(GroupPrincipalImpl.getPrincipalNameFromFullPath(fullPaths[n])));
}
}