// Resolve the expression to a reference.
RuntimePolicyReference reference =
resolver.resolveUnquotedPolicyExpression(
audioComponentName, PolicyType.AUDIO);
AssetResolver assetResolver = pageContext.getAssetResolver();
// Only supports AMR encoding at the moment.
SelectedVariant selected = assetResolver.selectBestVariant(
reference, ENCODING_COLLECTION);
if (selected != null) {
usePolicy(pageContext, selected, attributes);
}
}