// into the user's home
// TODO: this algorithm could actually merge pages on dups
Iterator roles = SubjectHelper.getPrincipals(subject, Role.class).iterator();
while (roles.hasNext())
{
Role role = (Role)roles.next();
if (pageManager.folderExists(Folder.ROLE_FOLDER + role.getName()))
{
Folder roleFolder = pageManager.getFolder(Folder.ROLE_FOLDER + role.getName());
deepMergeFolder(pageManager, roleFolder, Folder.USER_FOLDER + newUserFolder.getName(), userName, role.getName());
}
}
}
catch (Exception e)
{