} else if (value instanceof StyleString) {
StyleString string = (StyleString) value;
reference = new LiteralTextAssetReference(string.getString());
} else if (value instanceof StyleComponentURI) {
StyleComponentURI uri = (StyleComponentURI) value;
reference = new DefaultComponentTextAssetReference(
(RuntimePolicyReference) assetResolver.evaluateExpression(
uri.getExpression()),
getMarinerPageContext().getAssetResolver());
} else {
throw new IllegalStateException(