MenuInternals.setElementDetails(builder, attributes, styles);
// Set the event handling
MenuInternals.setEvents(builder, attributes, pageContext);
PolicyReferenceResolver resolver =
pageContext.getPolicyReferenceResolver();
// Set the prompt
builder.setPrompt(resolver.resolveQuotedTextExpression(
attributes.getPrompt()));
// Set the error message
builder.setErrorMessage(resolver.resolveQuotedTextExpression(
attributes.getErrmsg()));
// Set the help
builder.setHelp(resolver.resolveQuotedTextExpression(
attributes.getHelp()));
// Set the title
builder.setTitle(attributes.getTitle());