} else if (value instanceof StyleString) {
StyleString string = (StyleString) value;
format = string.getString();
} else if (value instanceof StyleComponentURI) {
StyleComponentURI uri = (StyleComponentURI) value;
PolicyReference reference = assetResolver.evaluateExpression(
uri.getExpression());
format = assetResolver.resolveText(reference, requiredEncodings);
} else {
throw new IllegalStateException(
"Unknown " +