AssetBuilder iconAssetBuilder = AssetBuilderFactory.getAssetBuilder(Asset.AssetType.Byte);
String iconExtension = iconName.substring(iconName.lastIndexOf(".") + 1);
String iconFileName = iconName.substring(0, iconName.lastIndexOf("."));
repository.deleteAsset(profile.getRepositoryGlobalDir( uuid ) + "/" + iconFileName + "." + iconExtension);
iconAssetBuilder.name(iconFileName)
.location(profile.getRepositoryGlobalDir( uuid ))
.type(iconExtension)
.content(iconContent);