} else if ( pentahoAclEntry.getRecipient() instanceof SimpleRole ) {
permissionRecipient = new SimpleRole( (String) pentahoAclEntry.getRecipient() );
} else {
permissionRecipient = new SimpleUser( (String) pentahoAclEntry.getRecipient() );
}
IPermissionMask permissionMask = new SimplePermissionMask( pentahoAclEntry.getMask() );
permissionsMap.put( permissionRecipient, permissionMask );
}
return permissionsMap;
}