Collection rolePropertiesList = RolePropertiesController.getController().getRolePropertiesList(role.getName(), languageId, db, true);
Iterator rolePropertiesListIterator = rolePropertiesList.iterator();
while(rolePropertiesListIterator.hasNext())
{
RoleProperties roleProperties = (RoleProperties)rolePropertiesListIterator.next();
if(roleProperties != null && roleProperties.getLanguage().getLanguageId().equals(languageId))
{
Collection assets = roleProperties.getDigitalAssets();
Iterator assetsIterator = assets.iterator();
while(assetsIterator.hasNext())
{
DigitalAsset digitalAsset = (DigitalAsset)assetsIterator.next();
if(digitalAsset.getAssetKey().equalsIgnoreCase(assetKey))