final ImageAssetReference imageAssetReference;
if (value instanceof StyleURI) {
String uri = ((StyleURI) value).getURI();
imageAssetReference = new LiteralImageAssetReference(uri);
} else if (value instanceof StyleComponentURI) {
StyleComponentURI styleComponentURI = (StyleComponentURI) value;
// Resolve the identity against the project associated with the
// value.
RuntimePolicyReference reference =
resolver.resolvePolicyExpression(
styleComponentURI.getExpression());
imageAssetReference = new DefaultComponentImageAssetReference(
reference, assetResolver);
} else if (value instanceof StyleTranscodableURI) {
final StyleTranscodableURI transcodableUri =
(StyleTranscodableURI) value;