throws PAPIException {
MarinerPageContext pageContext
= ContextInternals.getMarinerPageContext(context);
XFSelectAttributes attributes = (XFSelectAttributes) papiAttributes;
// Create a new protocol attributes object every time, as this element
// could be reused before the attributes have actually been finished with
// by the protocol.
pattributes = new com.volantis.mcs.protocols.XFSelectAttributes();
// Initialise the attributes specific to this field.
TextAssetReference object;
PolicyReferenceResolver resolver =
pageContext.getPolicyReferenceResolver();
// Process the errmsg as a mariner expression.
object = resolver.resolveQuotedTextExpression(attributes.getErrmsg());
pattributes.setErrmsg(object);
// Set the initial value attribute.
pattributes.setInitial(attributes.getInitial());
// Set the multiple attribute.
pattributes.setMultiple(multiple);
// Set the tag name