PolicyReferenceResolver resolver =
pageContext.getPolicyReferenceResolver();
TextAssetReference object;
// Process the caption as a mariner expression.
object = resolver.resolveQuotedTextExpression(attributes.getCaption());
pattributes.setCaption(object);
// Process the prompt as a mariner expression.
object = resolver.resolveQuotedTextExpression(attributes.getPrompt());
pattributes.setPrompt(object);