Preferences preferences = Preferences.userRoot().node(
RolePrincipalImpl.getFullPathFromPrincipalName(roleFullPathName));
String[] fullPaths = roleHierarchyResolver.resolve(preferences);
for (int i = 0; i < fullPaths.length; i++)
{
InternalRolePrincipal internalRole = commonQueries.getInternalRolePrincipal(fullPaths[i]);
if (null != internalRole)
{
Collection internalGroups = internalRole.getGroupPrincipals();
if (null != internalGroups)
{
Iterator internalGroupsIter = internalGroups.iterator();
while (internalGroupsIter.hasNext())
{